Singapore & Australia # 1 for Web Hosting & Domains
SG: +65 6914-7888   AU: 1300-863-436 Asset 1colo Help
Vodien Logo
  1. Home
  2. Knowledge Base
  3. Useful Tips
  4. Redirect Non-WWW To WWW Page

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 to

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

Remember to replace (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 and as two different URL.

If you have further questions, please do not hesitate to contact our support team.

Redirect Non-WWW To WWW

(Visited 852 times, 1 visits today)
Updated on October 18, 2020

Was this article helpful?

Related Articles