404 shows home page (4 posts)

  1. mprewitt
    Posted 6 years ago #

    I am running a test copy of WordPress on my computer, and trying to create a custom 404 error page.

    When I try to test it at http://mywebsite.localhost/some_crazy_url_that_does_not_exist

    ...instead of seeing the error page, I see the WordPress home page that I would see at http://mywebsite.localhost/

    However, if I enter http://mywebsite.localhost/index.php?error=404, then I see the correct error page. So obviously it is there. I have even added "ErrorDocument 404 /index.php?error=404" as the first line of my .htaccess file, but it doesn't help.

    Any ideas?

  2. iridiax
    Posted 6 years ago #

  3. bysse
    Posted 6 years ago #

    Did you find any solution to this? I've also an "active" thread about the same problem: http://wordpress.org/support/topic/235893?

  4. jentorme
    Posted 6 years ago #

    mprewitt and bysse, I want to let you know that I also have an "active" thread on this very topic:


    I'm doing the same thing you guys are, with an "ErrorDocument" directive in my .htaccess, but no matter what I put in it, it doesn't seem to work! I can redirect my 403's even offsite, to anywhere on the web, but I can't redirect my 404's for nothing. So the regular index.php loads, and that's wrong!

    Hmm, this is looking like a WordPress FAQ! Except nobody seems to have the answer yet!

Topic Closed

This topic has been closed to new replies.

About this Topic