Check that slick looking URL out, it took some fiddling and an hour of downtime to get this site to the stable state it is now in. Here’s the run through of how to convert your http://www.* format site URL (http://www.michaelvisser.com.au) to a single canonical source http://* (http://michaelvisser.com.au) for SE spiders.
- Update your WordPress site details
- Apply the http://www.* 301 Permanent Redirect condition
- Test everything!
- Let the people that matter know! (eg. Google, Technorati)
Update your WordPress site details
- Login as an Administrator within your blog back-end (eg. http://www.michaelvisser.com.au/wp-login)
- Open the Options page
- Within General Options update the WordPress address (URL) and Blog address (URL) to reflect your new address (eg. http://michaelvisser.com.au)
- Submit changes by clicking Update Options
- Sign out of your WordPress back-end
Apply the http://www.* 301 Permanent Redirect condition
- Open your .htaccess file (within in the root of your site directory, eg. /public_html/michaelvisser/)
- If you have Permalinks (Search Engine Friendly URL, eg. http://www.michaelvisser/about) active on your blog paste the following code immediately under the line beginning “# BEGIN WordPress“
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
</IfModule> - Save and close your .htaccess file
- Refresh any session cookies by closing your current browser window and reopening a new session (eg. Firefox, Internet Explorer)
- Return to your WordPress site using the new address (eg. http://michaelvisser.com.au)
- Themes developers often implement different linking structures so check a variety of content in your testing process, including:
- pages
- categories
- search features
- comment submission
- feedback requests
- any custom functionality
- Log in as an Administrator and test any privileged site features, including:
- Edit this post
- Mark as spam
- Delete this post
- Sign out from your privileged account
Let the people that matter know!
This is a simple process but will require the most effort and perseverence.
- Open Google’s Advanced Search to generate an inbound link search of your site
- Within Page-Specific Search enter in Links your site address (eg. http://www.michaelvisser.com.au)
- All of the pages listed need to be notified of your updated URL, you can do this by:
- Contacting the site owner directly if the link has been manually applied
- Logging in and updating your profile information within member profiles
Hope this helps! Thanks go out to Joseph Crawford for his post on the no-www movement and redirection code snippet.