Webiness
Please Login or Register

Knowledgebase

How do I remove the "www" from my domain name?

To automatically remove the "www" from the beginning of your domain, add the following mod_rewrite rule to your .htaccess file:

    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
    RewriteRule ^(.*)$ http://example.com/ [R=301,L]


If you don't have a .htaccess file, you can create one in a text editor and upload it to your root directory. Please note: the code above assumes your domain is called "example.com" so you will need to change it to match your actual domain name.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Quick Navigation

Client Login

Email

Password

Remember Me

Search