Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

site redirect admin access


friebj99

Recommended Posts

Posted

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

Posted

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.

Posted

I added the exact code and inserted my site. The re write works but I still can't access the back end.

 

Any other suggestions would be great

 

Thanks,

Justin

  • 2 weeks later...
Posted

I added the rewrite to both the site root .htaccess file and the admin .htaccess file and it still doesn't let me log in to back end of my site??

Archived

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

×
×
  • Create New...