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.twopiz.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.comand�http://yourdomain.com as two different URL.

  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

How to perform trace route?

Solution Windows1) From your task bar, click the start button2) Click Run...3) In the text...

How To Secure My Web Application?

Solution Having a shopping cart or content management system is an excellent option to start...

How to secure wordpress

Solution 1) Ensure that wordpress is always up to date2) Change your FTP login details...

Backup Your Important Data Using FTP Hosting

Solution Backup Your Important Data Using FTP HostingIt can't be said enough how important it is...

How To Redirect My Website?

Solution These are various ways that you can use to redirect a website/URL to another...