Issue with mod_rewrite on WP install
-
Not quite a WP problem, but maybe others have come across this:
I have a WordPress installation using this mod_rewrite scheme for .htaccess:
Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>Problem is that I want to have an admin sub directory with its own .htaccess file that has a simple authentication requirement, and it simply won’t work. I get a 404 response if I attempt to request the URI for that directory if I activate .htaccess, here is the entire contents:
AuthName “My Secret Folder”
AuthUserFile /home/public_html/admin/phpmyadmin/htpass
Require valid-userOf course the subdirectory .htaccess works great if I eliminate the mod_write on the parent directory.
The parent .htaccess file is standard for WordPress and haven’t had this issue before, so I’m assuming it has something to do with httpd.conf (AllowOveride) ?
thanks,
Chuck
- The topic ‘Issue with mod_rewrite on WP install’ is closed to new replies.