Welcome Guest, Not a member yet? Register   Sign In
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?
#2

[eluser]vps4[/eluser]
anybody help me?
#3

[eluser]Sumon[/eluser]
Though admin is a sub folder, try to access any controller (say http://aaa.com/admin/add_product/) and see what's happen. moreover, make sure you don't have http://aaa.com/admin.php file.




Theme © iAndrew 2016 - Forum software by © MyBB