View Single Post
  #1 (permalink)  
Old 11-08-09, 05:59 PM
m_abdelfattah m_abdelfattah is offline
Newbie Coder
 
Join Date: Sep 2004
Location: Alexandria, Egypt.
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
conflict between RewriteRule and AuthType Basic

I've 2 .htaccess files, one on the root , and here's the content :
Code:
Options +FollowSymLinks
Options -Indexes
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
and the other one on "/admin/", and here's the content :
Code:
AuthType Basic
AuthName "Administrator Control Panel"
AuthUserFile "./passwd"
require valid-user
when I visit : http://www.domain.com/admin/
it redirect me to /index.php
and not showing the authentication window !!

when I delete 2nd file which in "/admin/" , I can access http://www.domain.com/admin/
and If I deleted 1st file, the authentication window on http://www.domain.com/admin/ appears !
Reply With Quote