Jump to content
Sign in to follow this  
stb007

YASU2 URL REWRITING ISSUE

Recommended Posts

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 ?

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×