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??
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??
What does the Apache error log say?
posted by hattifattener at 10:49 AM on December 23, 2007
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
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
posted by lou at 12:57 PM on December 23, 2007
This thread is closed to new comments.
posted by lou at 10:41 AM on December 23, 2007