Forum Moderators: phranque

Message Too Old, No Replies

mod rewrite and password protected directory

         

akyprian

6:21 am on Jan 27, 2009 (gmt 0)

10+ Year Member



Hi,

I am on apache server and I have password protected a directory, named ..../admin. All has been working fine until I decided to use friendly URL's and put the following in my .htaccess file which resides in /public_html :

# URL rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On

## Category redirect

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>

All redirects are working fine, but I fail browsing web pages in my password protected directory. The user/password message box doesn't pop up any more. It seems that the requests are handled by the RewriteCond/RewriteRule statements above and I am redirected to the home index file.

Any ideas, please?

akyprian

10:22 am on Jan 27, 2009 (gmt 0)

10+ Year Member



Sorry to bother you, the problem is solved

regards

jdMorgan

2:13 pm on Jan 27, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



What was the problem? Posting your solution here may be a great help to those who read this thread in the future...

Thanks,
Jim