stb007 Posted May 16, 2006 Share Posted May 16, 2006 Hello, I'm having a problem with yasu2 and .htpasswd protection in /admin directory Description : I've installed Yasu2 in / (not /catalog as in the example). Rewriting works great, but when i install a second .htaccess to protect /admin i get the following : when typing http://www.toto.com/admin i'm redirected to the search engine, the url is : http://www.toto.com/advanced_search_result...?keywords=admin when i remove the /admin/.htaccess, it work great but i need to protect /admin... /.htaccess code is : <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule admin - [L] RewriteRule catalog$ /index.php [R,L] RewriteRule catalog/$ /index.php [R,L] RewriteCond %{REQUEST_URI} !-d RewriteCond %{REQUEST_URI} !^/$ RewriteRule !\.(gif|php|css|jpg|xml|swf)$ /rewrite.php THE /admin/.htaccess is : AuthName "username" AuthType Basic AuthUserFile /home/.sites/147/site296/web/admin/.htpasswd require valid-user Any solution ? Quote Link to comment Share on other sites More sharing options...
stb007 Posted May 17, 2006 Author Share Posted May 17, 2006 UP Quote Link to comment Share on other sites More sharing options...
♥toyicebear Posted May 17, 2006 Share Posted May 17, 2006 Hello, I'm having a problem with yasu2 and .htpasswd protection in /admin directory Description : I've installed Yasu2 in / (not /catalog as in the example). Rewriting works great, but when i install a second .htaccess to protect /admin i get the following : when typing http://www.toto.com/admin i'm redirected to the search engine, the url is : http://www.toto.com/advanced_search_result...?keywords=admin when i remove the /admin/.htaccess, it work great but i need to protect /admin... /.htaccess code is : <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> Options +FollowSymLinks RewriteEngine on RewriteBase / RewriteRule admin - [L] RewriteRule catalog$ /index.php [R,L] RewriteRule catalog/$ /index.php [R,L] RewriteCond %{REQUEST_URI} !-d RewriteCond %{REQUEST_URI} !^/$ RewriteRule !\.(gif|php|css|jpg|xml|swf)$ /rewrite.php THE /admin/.htaccess is : AuthName "username" AuthType Basic AuthUserFile /home/.sites/147/site296/web/admin/.htpasswd require valid-user Any solution ? http://www.toto.com/admin/index.php Quote Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce - Commercial Support Inquiries - OSC 2.3+ How To To see what more i can do for you check out my profile [click here] Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.