Back to Knowledge Base
Knowledge Base Useful Tips How to redirect non www to www?

How to redirect non www to www?

Useful Tips 07/11/2026
<p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Solution</span></p>
<p><span style="font-family: arial, helvetica, sans-serif; font-size: small;">Create a .htaccess file in the folder of your website<br /><br />Place the contents into your .htaccess file and replace vodien.com with your domain name.<br /><br />RewriteEngine on<br />RewriteCond %{HTTP_HOST} ^vodien.com [NC]<br />RewriteRule ^(.*)$ <a href="http://www.twopiz.com/$1" target="_blank">http://www.twopiz.com/$1</a> [L,R=301]<br /><br />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 <a href="http://www.yourdomain.com/" target="_blank">http://www.yourdomain.com</a>and <a href="http://yourdomain.com/" target="_blank">http://yourdomain.com</a> as two different URL.</span></p>
Was this article helpful?