Sorry about not posting quite often on this blog, pretty much occupied on my day job and don’t have that luxury of time even on the evening to post. Anyway, back to our topic.
If you are using wordpress 2.3 or 2.5, you don’t need to have an .htaccess code to redirect your non-www site to www to avoid duplicate urls. the latest version of wordpress is already doing this and already incorporated on the code of WP. This is far that I have seen when i have implemented it on my of my blog.
What are the consequences of this if you again redirect the latest wordpress that is already redirecting the site to www version? Remember DMOZ? when their main page was out of the google index. They are redirecting permanently the www version to their own www version of the site, 301 redirect. That means if bot is going into the site www version it is again being redirected to its www version leaving bot to give up on an infinite loop of redirection.
This scenario happened to me and only then I have noticed when I checked and removed the www but still redirecting it to www version.
Resolution: Removed the line on .htaccess permanent redirect (301) to www and let theĀ alone the hardcode piece on Wordpress. The site now back to index.


















7 Comments Received
April 11th, 2008 @4:36 pm
I first found it under the options tab where you can customize the title etc of your blog. It allows you to choose between www and non-www version. Never needed to use the .htaccess file.
April 12th, 2008 @8:59 pm
Thanks for the tip. It is appreciated.
April 18th, 2008 @4:32 pm
Oh great, another thing I have to worry about when I upgrade to 2.5 - just teasing of course. I am glad to see they implemented this, personally I don’t like not using the http://www.
Is this a setting that can be adjusted or is is hardcoded? I imagine that some would rather have the url appear as http://url.com?
Thanks for the info,
Charles
April 19th, 2008 @1:52 pm
Thanks. it is very usefull info.
May 14th, 2008 @8:13 pm
Your post was just what I needed. Wordpress is a great tool but sometimes I want to throw it out the window. Thanks for the tip. I’ll see if I can make it work.
Pingback & Trackback
Leave A Reply