We killed the www prefix

Today we killed off the www prefix. I tried a few methods including the www-redirect plugin and then fell onto the .htaccess solution which was easier for me, it looks something like this:

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^nostatus.com
RewriteRule (.*) http:///$1 [R=301,L]

This .htaccess code is considered a safe redirection method, it’s a “301 redirect”. It is considered to be an efficient and search engine friendly way to redirect webpages. By adding the lines above to the .htaccess file it’s not hard to implement a site wide change from the www prefix. The code “301” is interpreted as “moved permanently” and it should keep your search engine ranking safe and sound and still in there 🙂

Is anyone else out there doing this? Feel free to comment or leave a trackback.

Leave a Reply

Your email address will not be published. Required fields are marked *