WordPress Canonical URLs: Redirect WWW to Non-WWW Blog URLs and Vice Versa
Perhaps one of the number one tips expert bloggers will give newbies, particularly in the realm of search engine optimization, is to use consistent URL formats. Usually a website address can be accessed with or without the WWW. For example, http://www.wordpressphilippines.org/ and http://wordpressphilippines.org/ are valid URLs for this website but you don’t see a WWW in the address bar, right? That’s because we’ve redirected the WWW URL to the non-WWW URL.
The problem with having both a WWW and a non-WWW URL for your website is that Google and other search engines will assume . In the past, you could only fix this by adding a few lines of code in the your .htaccess file, or by telling Google they point to the same website. But if you’re running the latest version of WordPress (2.3), it automatically does that for you! Yes, just specify in the General Options page of the administration panel what your blog URL should look like. If you add a WWW, it will redirect all non-WWW URLs, and vice versa.
The truth is, there is more to URL canonicalization than I’ve mentioned here, but this is another proof of how WordPress has grown and incorporated these neat little features. It’s also a pretty good introduction to how the world of Search Engine Optimization works.
So now the question is if you prefer having WWW in your URLs or not! I personally prefer removing the WWW because it’s shorter and neater that way. How about you? What does your blog URL look like?


