Originally Posted by
DrByte
Please explain exactly what *you* mean by "hosted domain redirect" and also exactly what you've got for your ".htaccess 301 redirect".
Ok, up until now, through the site that I bought my domain name from I've had www.mysite.com redirecting to www.mysite.com/store, and ALSO, the hosting company where I have my whole site hosted (which is different from where I got my domain name), I've redirected my domain in the same way. This was working until I added the 301 redirect today. Now, mysite.com, mysite.com/catalog, and www.mysite.com/catalog are all redirecting correctly to www.mysite.com/store, but www.mysite.com is NOT redirecting.
Here is what I put in the public_html folder:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com$
RewriteRule ^$ http://www.mysite.com/store$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/store$1 [L,R=301]
and here is what I put in the /catalog folder, it's working correctly:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^mysite.com/catalog$
RewriteRule ^$ http://www.mysite.com/store$1 [L,R=301]
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.mysite.com/catalog$ [NC]
RewriteRule ^(.*)$ http://www.mysite/store$1 [L,R=301]
I also added this to the /store .htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/store$1 [L,R=301]
Maybe it's too much redirecting?
Thank you!!
Bookmarks