In Wordpress installation, the default .htaccess is
Code:
| RewriteEngine On |
| RewriteBase / |
| RewriteCond %{REQUEST_FILENAME} !-f |
| RewriteCond %{REQUEST_FILENAME} !-d |
| RewriteRule . /index.php [L] |
Basically it says if there is a file name or folder name of such, the rewrite rule will ignore it.
However, if you have a sub folder, for example, called subfolder, with another .htaccess within it to password protected that folder, the rewritecond will simply just not work.
Some people say you can put
Code:
in the .htaccess file within the subfolder. However, the .htaccess file of subfolder will not processed until the one of root folder is processed. That means it will never work.
Some suggests using IP address to protect the folder rather than password. This can only work to an extent if customer got a static IP on their ADSL router.
We found another way definitely work by using sub-domain name. If you setup your server to point the sub-domain directly to that folder, that folder will become root under the sub domain and the .htaccess will not be processed.