404 Not Found
December 23, 2007 10:40 AM   Subscribe

Why are the 404 pages on my server broken?! I get a 500 Internal Server Error instead. Link to my .htaccess inside.

Here's my webpage.

Here's what happens when you go to a page that doesn't exist.

But I get an Internal Server Error instead!

Now, I'm suspecting that the problem lies in my .htaccess file, but I can't be certain. I can't link directly to it, because you get the 403 Forbidden page, properly. So here's the text file version of its exact contents.

Any suggestions? Anything I'm overlooking??
posted by lou to Computers & Internet (4 answers total)
 
Response by poster: I should add that this has been going on for a very long time now, so I can't remember what happened that broke it. It used to work, many years ago. I'm finally getting around to fixing it....
posted by lou at 10:41 AM on December 23, 2007


What does the Apache error log say?
posted by hattifattener at 10:49 AM on December 23, 2007


Best answer: It's your Wordpress rewrite rule:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If the request filename isn't a file or directory, rewrite to index.php. index.php 500's, and any request which would 404 gets rewritten to it.
posted by Freaky at 11:08 AM on December 23, 2007


Response by poster: That's it, the Wordpress thing. I got rid of it and so far nothing appears to have broken, so now have to figure out what it was doing there in the first place. Thanks!
posted by lou at 12:57 PM on December 23, 2007


« Older How can I sing like Tiny Tim?   |   Help me sell my gold Newer »
This thread is closed to new comments.