ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Enable Strict URL feature is not using my define 404 page

November 02, 2011 7:34pm

Subscribe [3]
  • #1 / Nov 02, 2011 7:34pm

    Jack Tse

    67 posts

    EE 2.3.1
    EngineHosting
    Solspace Tags

    ___

    Hi Everybody,

    I turned on Enable Strict URLs (ESU for short)and specified a 404 template group that I made.


    What happens is that the ESU works but with a generic 404:

    <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
    <html><head>
    <title>404 Not Found</title>
    </head><body>
    <h1>Not Found</h1>
    The requested URL /yo was not found on this server.
    </body></html>

    My specified 404 works in other instances like when using ‘redirect’ or ‘require_entry’.


    Anybody have a clue?! Thanks!


    - jack

     

  • #2 / Nov 03, 2011 2:03pm

    Jack Tse

    67 posts

    Today I installed Rob Sanchez’s http_header plugin that sets http Headers for the 404 template group:
    http://www.barrettnewton.com/

    Still, the original problem is still there:

    A system/or server 404 page that is there despite enabling the Strict/404 combo:
    http://website.com/yo

    EE 404 Page:
    http://website.com/about/yo


    Please help, I’m not sure what is causing this! 😊

  • #3 / Nov 03, 2011 5:25pm

    Dan Decker

    7338 posts

    Hi Jack Tse!

    I’m sorry to see you are running into this issue. First question I have to ask, are you using .htaccess in anyway? It could potentially override ExpressionEngine’s 404 behavior in this instance. Your redirects would be working since EE has a chance to “take over” before the redirect is issued and EE is actually performing the redirect.

    Cheers,

  • #4 / Nov 03, 2011 5:54pm

    Jack Tse

    67 posts

    Hi Dan,

    I do… but never have I experienced this issue before on my other EE websites. Here is my .htaccess file. Template groups are altered…

    removed


    I have some 301s too that I left out.

    What do you think? Thank you so much Dan!

  • #5 / Nov 03, 2011 8:07pm

    Jack Tse

    67 posts

    Hi Dan and everybody (future people searching for this solution),

    Okay - Dan figured out my issue essentially. My server had a default and all I needed to do was change that default. I used .htaccess:

    ErrorDocument 404 /yourFile.php

    http://stackoverflow.com/questions/2611748/single-errordocument-directive-to-catch-all-errors-htaccess

    ___


    The Enable Strict URLS is for
    http://www.website.com/index.php/BAD-URL

    What I needed was:
    http://www.website.com/BAD-URL

    In which the above .htaccess code fixed. Thanks.

     

  • #6 / Nov 03, 2011 9:01pm

    Sue Crocker

    26054 posts

    Glad Dan was able to assist. Feel free to start a new thread if you have any more questions.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases