Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

site redirect admin access


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.




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]



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




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...


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

  • Create New...