View Single Post
Old 23rd January 2012, 12:52
fmmarzoa fmmarzoa is offline
Junior Member
Join Date: Jan 2010
Posts: 7
Thanks: 1
Thanked 0 Times in 0 Posts
Default .htaccess is readable


Thanks a lot by your answer, but .htaccess is on web subdir and it is readable, otherwise it will not be doing the redirection that it is doing.

-rw-r--r-- 1 web2 client2 295 2012-01-23 02:38 .htaccess

The problem is that those RewriteCond seems to be ignored by Apache, or for some reason it thinks that /admin is not a directory, or something similar.

One thing that it seems to be important is that /admin has its own .htaccess file and it is password protected. I did not think that this was relevant for the case, but I have found a guy with similar problems here:

See the answer Apr 19 '10 at 1:31 by matdumsa:

"RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

These conditions are already supposed not to rewrite the url of existing folders but they donít do their job for password protected folders."

To do a fast test on this, I just removed the .htaccess file from /admin and after that the redirection works as expected, so the is working right. The problem is that I need that folder to be password protected, so now I must find a way to have that /admin/.htaccess file and RewriteCond working...

Best regards,
Reply With Quote