Fake URLs go to index page, not 404.php
-
Hi all,
If I enter an address which I know doesn’t exist on my site, e.g. https://www.onocrotalus.com/fake, I am taken to index.php, not 404.php. My .htaccess file is as follows:
#
BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>
# END WordPress`
Mod_rewrite seems to be working because I get a 500 error if I replace the rewrite rule with garbage. If I remove the RewriteCond and RewriteRule lines entirely, then head to a fake URL, I get the server’s 404 page. I just can’t find any way to make my own 404.php appear.
I’ve tried the fix suggested in this thread, with no success.I don’t know if it’s relevant, but I have this problem with trying to get permalinks working too.
I am using WP 2.0.4, my host is Lycos, plugins are Askimet, Custom Query String, and Sitemaps. WP is installed at the root.
Any advice would be very kind.
- The topic ‘Fake URLs go to index page, not 404.php’ is closed to new replies.