There was a problem loading the comments.

How to Redirect non-www to www by using .htaccess?

Support Portal  »  Knowledgebase  »  Viewing Article


Open or create a new file .htaccess in public_html folder with content as sample below:

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

Share via
Did you find this article useful?  

Related Articles

© ServerFreak Technologies Sdn Bhd