1

I've created a /404.group/index.html that contains my desired 404 page. In Design ‣ Templates ‣ Global Preferences, I've set my 404 to 404/index.

When I go to domain.com/some-crazy-made-up-url, I do not get the 404 page. However, I do see it when I go to domain.com/404.

What am I doing wrong? I have Enable Strict URLs set to "yes".

5
  • Do you get a blank screen or does it render another template? Try enabling Error Reporting and Template Debugging to shed more light. ellislab.com/expressionengine/user-guide/cp/admin/…
    – Judd Lyon
    Commented Nov 21, 2013 at 5:39
  • It renders the homepage template. I'm not sure if I see anything odd in template debugging. Nothing seems out of place. Commented Nov 21, 2013 at 9:36
  • do you have strict url's set to no or yes? Commented Nov 21, 2013 at 15:26
  • "yes", per my original post. Commented Nov 21, 2013 at 20:47
  • 3
    If you haven't worked this out, yet, can you revise your question and include the exp:channel:entries tag on your home page? Setting require_entry="yes" as a parameter, as well as having {if no_results}{redirect="404"}{/if} might be needed.
    – Jay F
    Commented Dec 9, 2013 at 1:47

2 Answers 2

2

Check your htaccess file. It's possible you have a 404 redirect statement there too which should be removed.

2
  • Nothing in htaccess that relates to 404. I checked the server response for the page I expect to return a 404; it is returning a 404 (used Chrome's web developer toolbar to verify). Commented Nov 23, 2013 at 7:35
  • Try disabling extensions in index.php to see if one is causing the issue...
    – Anna_MediaGirl
    Commented Nov 25, 2013 at 1:59
-1

Is this not a simple issue with using .html and not .php? If you create the 404 group page as 404.group/index.php see what you get when you throw in a random url.

1
  • The correct extension for ExpressionEngine templates is .html. Commented Dec 7, 2013 at 0:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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