Best WordPress Plugins: Enforce www. Preference
It it always a good idea to decide if you want to make your website accessible through http://www.domain.com or http://domain.com, and stick with it. Having both of those versions working might split your backlink count and cause problems with search engine indexation (you can read more about it on the article WWW or no-WWW?).
The best way to solve this problem is to set a 301 redirect. Sometimes, however, you might find it difficult to get the PHP code working or your server might not support the .htaccess redirect. In that case you can turn to a WordPress plugin called “Enforce www. Preference”.
Once you upload and activate the plugin it will enforce the address that you have on the WordPress control panel (under the General tab on Options). If on the control panel you have http://www.domain.com, for instance, the plugin will add a www. every time a visitor tries to access the site through http://domain.com. Another advantage of this plugin is that it removes the index.php from the end of URIs.
Get My Best Internet Marketing and Entrepreneurship Tips
- Don't worry, I only send out emails once or twice a month.
- But when I do, it's because I have something valuable to share!
- You don't want to miss those, and it's completely free!
20 Responses to “Best WordPress Plugins: Enforce www. Preference”
that’s just…awesome. How many people are seriously comfortable with going into their .htaccess files and messing around? Not many, that’s how. How many.
Painless 5 second install, thanks!
WordPress seems pretty cool. I, however, love textpattern. That’s my story and I’m stickin to it.
Mikulla, WordPress is the best platform in my opinion, but that does not mean other platforms do not work. If you are getting what need from yours than stick it with! I mean there are people that love Blogger hehe.
Thanks for the blogging about it…. I just added it you mine 🙂
I use .htaccess to rip off the www.
Just to remember, in Google Webmasters Tools there’s a way to specify what’s the version you prefer to be indexed, with or without www.
Yes Alexandre, Google Webmaster tools has that preference if you usw their sitemaps (which you should,) but it still doesn’t apply to other search engines (which still matter, btw.)
egon, I am not sure about the sitemap deal, this would be a great discussion :). I used to have it, but then when I did some changes on the blog I decided to remove it, and have been without it for the past 2 months, without bad effects hehe.
I know it helps to get your pages indexed faster, but for some people it also damaged their SERPS. Anyway we discuss it on another post!
This is awesome. Especially for the podpress plugin. My player always shows now 🙂
I have the plugin, but it doesn’t seem to work. My options page says hamelife.com but even when you type in http://www.hamelife.com it takes you straight to www without the redirect.
I tried changing the htaccess file, but it totally stripped out the CSS from my site, so I’m obviously not doing that right. Any suggestions?
Okay, I’ve just tested the link in my previous comment, and it does redirect to hamelife without the www. But tests I’ve run – say, at no-www.org – tell me that my site does not have a redirect. And if I specifically type in http://www.hamelife.com into my address bar, it takes me to http://www.hamelife.com.
Thank you so much…
Ah, the 301 Redirect. Thanks for pointing out the obvious.
I like blogspot than wordpress
Thanks for the tips in this blog
Comments are closed.