Loading...

Knowledge Base

Redirect Non-WWW To WWW Page

Redirect Non-WWW To WWW page by doing a 301 redirect. To do that, create a .htaccess file or edit an existing .htaccess file inside the public_html directory. Next, put in the below into the very first line.

The following example redirects users from http://vodien.com to http://www.vodien.com

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

Remember to replace vodien.com (only an example) with the your own domain name!

Is there a benefit for doing a URL redirect? Yes there is; it helps you ensure that search engines do not crawl to two of the same page from your website which may dilute your ranking because search engines treat http://www.yourdomain.com and http://yourdomain.com as two different URL.

 

Did you find this article helpful?

 
* Your feedback is too short

Loading...