.htaccess finding pages when it should 404 – why?
-
hey all,
here’s the bottom of my htacess file:
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] RewriteCond %{HTTP_HOST} ^mydomain\.com [NC] RewriteRule ^(.*) https://www.mydomain.com/$1 [R=301,L]
the problem is that even when i go to a page that SHOULD be a 404, wordpress is somehow doing a broad match on my request string and matching with a blog in wordpress that fits the pattern.
looking at .htaccess, i can’t see where i’m telling it to do this. maybe it’s not even happening in wordpress?
example: when i go to an obvious 404:
https://www.mydomain.com/m
this is the URL that loads:
https://www.mydomain.com/managing-your-lettings-agent-part-i/
another example:
https://www.mydomain.com/can
loads
https://www.mydomain.com/can-you-really-afford-to-build-a-portfolio-without-direction/
i’m at a loss! can anyone help?
cheers
sarah
- The topic ‘.htaccess finding pages when it should 404 – why?’ is closed to new replies.