Knowledgebase: Site Functions
Redirect Non-www to www
Posted by - NA - on 12 February 2007 06:00 PM
Simply add the following to the .htaccess file in your public_html folder:

RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^yourdomain\.com
RewriteRule ^(.*)$$1 [R=permanent,L]

Be sure to replace domain with your domain name.

(282 vote(s))
This article was helpful
This article was not helpful

Comments (0)
Post a new comment
Full Name:
Help Desk Software by Kayako fusion