• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's problem with .htaccess?

#1
[eluser]vps4[/eluser]
the .htaccess file in site's root

Code:
RewriteEngine ON

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]


I have a sub-directory "admin"
I put an other .htaccess file to protect admin panel

Code:
AuthType Basic
AuthName "Please Login"
AuthUserFile "/home/xxx/.htpasswds/public_html/aaa.com/admin/passwd"
require valid-user

when I visite http://aaa.com/admin/

the second .htaccess will NOT work. It redirect to http://aaa.com/

If remove the .htaccess file in the site root, admin directory .htaccess will work fine.

How can I do?


Messages In This Thread
What's problem with .htaccess? - by El Forum - 10-01-2008, 03:31 AM
What's problem with .htaccess? - by El Forum - 10-01-2008, 08:25 PM
What's problem with .htaccess? - by El Forum - 10-02-2008, 03:58 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.