Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

site redirect admin access


friebj99

Recommended Posts

I recently modified my .htaccess file so that everyone who typed in strattapparel.com would be redirected to http://www.strattapparel.com

 

In doing this I am no longer able to access the back end of my store (login attempt failed). When I deleted the rewrite I am able to access the back end again. I would like to keep this feature so that google doesn't think that I have different domains and to help out my SEO.

 

The code added to the .htaccess file is:

 

RewriteEngine On

RewriteCond %{HTTP_HOST} ^socialpatterns\.com$ [NC]

RewriteRule ^(.*)$ http://www.socialpatterns.com/$1 [R=301,L]

 

If anyone has any insight on how I would be able to access the back end and keep the rewrite that would be greatly appreciated.

 

Thanks,

Justin

Link to comment
Share on other sites

this works:

 

 

 

 

RewriteEngine on

RewriteCond %{HTTP_HOST} !^www\.mysite\.co.uk [NC] 

RewriteCond %{HTTP_HOST} !^$ 

RewriteRule ^(.*) http://www.mysite.co.uk/$1 [L,R=301]

Sam

 

Remember, What you think I ment may not be what I thought I ment when I said it.

 

Contributions:

 

Auto Backup your Database, Easy way

 

Multi Images with Fancy Pop-ups, Easy way

 

Products in columns with multi buy etc etc

 

Disable any Category or Product, Easy way

 

Secure & Improve your account pages et al.

Link to comment
Share on other sites

  • 2 weeks later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...