How to Ditch the WWW from Your Domain Name

Personally, I prefer to have rather than

In fact, unless you specify that they are the same site, Google can treat them as seperate Websites, and you would be diluting your page rank!


Connect to your website via FTP. Find your .htaccess file (usually in your public_html/www folder). If you can’t find one, just open your text editor (notepad will do) and save it as “.htaccess”.

Find some clear space, and type the following:

RewriteEngine On
RewriteBase /

RewriteCond %{HTTP_HOST} ^$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]

Simple? Yep!

Save & Upload! Sorted!

note: this is to UNIX-based machines only (UNIX is the most popular out there..)

Any questions just send me a direct message or leave a comment.

Be Sociable, Share!


2 thoughts on “How to Ditch the WWW from Your Domain Name

  1. Martin Ramsey

    Hi Bobby
    Short and sweet.
    Do I write as you have with the text domain-name
    or do I put my own domain on it?

    Sorry for the silly question. But my logic tells me to put in my own domain name due to the fact you have ended it with .com



Leave a Reply

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