Today, I just changed the default URL of Hacker’s Lane from non-www version to www version, and now my blog’s URL feels better :)
I wanted to change it to www.hackerslane.com as I thought that it would look more professional, I didn’t have any idea how to do it. After a bit of Googling I found a plugin to do that and the plugin didn’t work :(
Lastly,? got how simple it is, to change the default blog URL in WP. You don’t need any plugin or any other hack.
Just…
- Login to your WP Admin Panel.
- Go to “Settings->General”.
- On that page, change the “Blog address (URL)” to the www version of your blog’s URL. (See the pic below)
That’s it, now WordPress will redirect your non-www URL to the new www URL. But wait, we are not done yet.
SEO Requirement
We need to fix up some bits or your posts would have duplicates in index of search engines. To do this, we would use 301 permanent redirect on our old non-www URLs so that the search engines would index only the updated WWW version of your site.
For this,
- Edit the .htaccess file located in the root of your server, or the htdocs/public_html folder.
- Add this lines to your .htaccess:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yoursite.com
RewriteRule (.*) http://www.yoursite.com/$1 [R=301,L] -
Save it and you’re done. :D
we can even choose that while installing the wordpress itself..
yeah… :)
nice…. but d ques is which1 is best www or non-www??
both have no difference in SEO, the www looks more PROFESIONAL :)
Hi,very very thanks for the solution…….i didnt know that it was so easy…..Will it change the indexed url in google to new one?
Hi,
Google would index your new URLs automatically the next time it crawls your site, but you are supposed to redirect your old URLs to the new one or your posts will be having two URLs in Google Index.
I’ve added the SEO Requirement, please follow it.
Thanks. :)
Hi,thanks for the update…but i followed a different method(please tell me if it doesnt work)-
After changing non-www to www url in WP,i went to webmaster tools and added both urls(non-www and www) and then in settings of www url,i changed preferred domain as http://www.url..
Will this work without any problem?
Thanks
Hi,
Even after setting up the preferred URL in Google Webmasters, most of the listings will have both of your URLs as two DIFFERENT sites and hence will penalize your rankings for duplicate content. Google Webmasters will only help you with Google rankings, think about the rest. And yes, I have read many cases in which the site’s rankings were badly hit due to two URLs. I strongly recommend you to redirect non-www site of yours to www, that would prevent any SEO damage to your site. :)
Google says the same:
Friend, really thanks for this quick tip :) implies quickly.