Originally Posted by online
Why this confusion with and without www ? What's the universal procedure?
|
it is best to redirect 301 to www or www to non-www to prevent any confusion/This is example to redirect non-www to www:
Code:
# redirect non-www to www domain
RewriteCond %{HTTP_HOST} ^yoursite\.com[NC]
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L]