friebj99 Posted June 16, 2009 Posted June 16, 2009 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
spooks Posted June 16, 2009 Posted June 16, 2009 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.
friebj99 Posted June 17, 2009 Author Posted June 17, 2009 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
friebj99 Posted June 17, 2009 Author Posted June 17, 2009 when I take the rewrite off, and try to type http://www.strattapparel.com/admin in the address bar, it redirects me to http://strattapparel.com/admin/login.php so that I can log in. This must have something to do with why I can't login to http://www.strattapparel.com/admin when I incorporate the rewrite. Any ideas?
friebj99 Posted June 30, 2009 Author Posted June 30, 2009 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??
Recommended Posts
Archived
This topic is now archived and is closed to further replies.