(kind of a repost - to the right forum this time)
I have a Wordpress installation that uses the hxxp://mydomain.com as the URL.
hxxp://www.mydomain.com will of course re-direct via Wordpress' built in features but I'd rather do it via a 301 redirect in order to fix some backlinking issues. My best backlinks are via the non-www domains.
I can find plenty of examples of 301 re-directing from non-www to the www, like this in a .htaccess file:
Is it safe to say the appropriate way to do it to go www > non-www would be this?
I have a Wordpress installation that uses the hxxp://mydomain.com as the URL.
hxxp://www.mydomain.com will of course re-direct via Wordpress' built in features but I'd rather do it via a 301 redirect in order to fix some backlinking issues. My best backlinks are via the non-www domains.
I can find plenty of examples of 301 re-directing from non-www to the www, like this in a .htaccess file:
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule (.*) [URL]http://www.mydomain.com/$1[/URL] [R=301,L]
Is it safe to say the appropriate way to do it to go www > non-www would be this?
Code:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule (.*) [URL]http://mydomain.com/$1[/URL] [R=301,L]