Web Hosting

Singapore Web Hosting

With 24/7 Super Support
Web Hosting Singapore Blog    Web Hosting Singapore Contact Us    Web Hosting Singapore Client Login
Singapore Dedicated Web Hosting
Email: Call: +65 6288-6264
 
Support Center » Knowledgebase » How to redirect non www to www?

Web hosting Knowledge Base/FAQ

 How to redirect non www to www?
Solution Create a .htaccess file in the folder of your website

Place the contents into your .htaccess file and replace vodien.com with your domain name.

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

Is there benefits for doing that? Yes it does, it helps you ensure that search engines do not crawl two of the same page from your website and this may dilute your ranking because search engine treat http://www.yourdomain.com and http://yourdomain.com as two different URL.



Article Details
Article ID: 78
Created On: 31 Dec 2009 04:05 AM

 Back
 Login [Lost Password] 
Email:
Password:
Remember Me:
 
 Search
 Article Options

 

Singapore Web Hosting With A Difference - Click To Read More...