.htaccess - htaccess non-www to www redirect issue -
in our .htaccess using rule forcefulness non-www links www.
rewritecond %{http_host} !^www\. rewriterule ^(.*) http://www.mysite.com/$1 [r=301,l]
however, ran issue www.mysite.comwww.mysite.com somehow got logged. while correcting error created link important, want create sure instance gets redirected well.
after searching on google see many suggestions of
rewritecond %{http_host} ^mysite.com [nc] rewriterule (.*) http://www.mysite.com/$1 [r=301,l]
however not work @ on our site, bob.mysite.com doesn't move www.mysite.com
is there i'm missing here?
.htaccess redirect
No comments:
Post a Comment