Mod Rewrite Conflicting with other .htaccess files
-
P.S. Before I begin, I did search all around for this problem, but neither found a solution nor found anyone describing my exact situation.
Hello Everyone,
I’m having a problem with mod rewrite that I’m not understanding. Here is my modrewrite code:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
My blog is located at http://www.vincecardillo.com . For whatever reason, if I hit my .com/images, I get the wordpress 404 page. This isn’t so bad. I’m pretty sure it has to do with the fact that I’ve used Options -Indexes. But, there is where the problem is:
http://www.vincecardillo.com/blog/wp-content/plugins/postie/get_mail.php
Notice the glaring 404 error. I assure you, that file exists. But the 404 error occurs when I try and password protect that directory using .htaccess, since I don’t want just anyone being able to ping that page. If I remove the .htaccess from the Postie directory, then I am able to reach get_mail.php just fine.
Further, if I remove all of WordPress’s ModRewrite rules from the .htaccess in my root public_html folder, then all of these problems disappear. Which leads me to believe this issue stems from something with WP’s ModRewrite stuff.
So I have several questions here:
1. Why do WP’s rewrite rules produce WP’s 404 error page if I use a .htaccess anywhere else on the site?
2. Why do WP’s rewrite rules produce WP’s 404 error page for files that actually exist?
Thanks for any help in advance,
– Vince
- The topic ‘Mod Rewrite Conflicting with other .htaccess files’ is closed to new replies.