How do I redirect non-www to www?

Simply add the following to the .htaccess file in your public_html folder:

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

Be sure to replace domain with your domain name

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

How to Use Web FTP / browser-based FTP

How to use browser-based FTP (also known as WebFTP) on your Windows PC: Open My Computer (do NOT...

PHP upload filesize limit

While you can set the PHP variable "upload_max_filesize" for only your account, our servers will...

My Website Is Slow

My Website Is Slow Having a slow loading website can be frustrating, and can lead to less...

What Are Cron Job Commands ?

  PHP Command to run a PHP5 cron job: php /home/user_name123/public_html/cron.php   Optional...