Viewing 7 replies - 1 through 7 (of 7 total)
  • I had that same problem. What I did was set the 404 page to blogurl.com/index.php/404 in .htaccess. It’s not 100% correct but at least it’s a temporary solution until someone finds the answer.

    Thread Starter wrichter

    (@wrichter)

    Cool, I was trying to figure out how to pass that to index.php through htaccess.

    best place I can find for this question. I’m trying to create a custom 404 page. I made a template for 404 and created a page that exists at http://www.mydomain.com/404/ that has what I want to be my 404 page.

    I tried adding the following to my .htaccess
    ErrorDocument 404 http://www.mydomain.com/404/

    But everytime I go to a page that does not exist (this example, http://www.mydomain.com/nothere.html) I get the following:
    “Not Found
    The requested URL /nothere.html was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. “

    ANy ideas? AM I doing something really dumb?

    In .htaccess:
    ErrorDocument 404 /index.php?error=404

    Don’t make Page Template for this, and don’t make a Page pointing to it. Just name a file 404.php in your current theme’s directory and put in whatever text you want to display on your 404 message directly in that template file.

    you’re the man (or woman? either way, it worked :)! that worked great.

    (man)
    Glad it worked out 🙂

    cool….thanks for this…

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom 404 Only Works for Certain Paths’ is closed to new replies.