Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

YASU2 URL REWRITING ISSUE


stb007

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 ?

Link to comment
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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...