Craft CMS Stack Exchange is a question and answer site for administrators, end users, developers and designers for Craft CMS. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Wanting to move static/single templates in to a directory pages and thus, the path to my 404 template is now pages/404.html. I don't necessarily need dynamic content as asked here. Is there a config setting I can use to point the default 404 URI behavior to that template?

share|improve this question
up vote 5 down vote accepted

Yes, use errorTemplatePrefix.

'errorTemplatePrefix' => "pages/",
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.