Comment on WordPress SEO Tutorial 2014 301 Redirects by Razvan.

WordPress SEO 301 Redirects Hi! Please help me out! I feel I’m going crazy…

I a have site built on a wordpress platform. The thing is neither 301 redirects nor canonical rel are working for redirecting from non www to www, although when I first put the site online it used to work. I’ve tried leaving just the 301 and then just the canonical thinking that they can come in conflict. I’ve tried all the code versions for .htaccess I could find including yours. I’ve also tried registering the non www to google webmasters but no matter which way I try it fails (when I verify them with www they are all ok). Non www just doesn’t work. I get the following message:

“This IP address is shared. For access to the web site which you look for, enter its address instead of its IP.
For questions or problems please contact the server administrator.”

The only change I can think of doing is updating my sitemap in google webmasters because there were a few changes but I don’t see how that can influence anything. Here’s a copy of my .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.domain.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Please help me out! Thanks!