I copied some code (for Wordpress permalinks) into my .htaccess file in the root directory. Everything is working fine. This is the code:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Now I have created a new directory that I want to password protect using .htaccess. I installed this (using the ht.access file in the directory I want to protect), but when I try to go to the password protected directory, I redirect it to the index.php main page.
I assume I need to add something to the .htaccess file in the root directory? Is this correct, and if someone told me the code I need to add?
Andrew Smart
source share