This is the code to resolve canonical/ non www issue.
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^abc.com[nc]
rewriterule ^(.*)$ http://www.abc.com/$1 [r=301,nc]
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^abc.com[nc]
rewriterule ^(.*)$ http://www.abc.com/$1 [r=301,nc]
No comments:
Post a Comment