Knowledgebase:
How to redirect your non www site to www
Posted by Vince T, Last modified by Vince T on 16 August 2016 06:50 PM
To perform a redirection, you will have to do it via the .htaccess file and place it in the directory it is being run.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [L,R=301]


and if you want to to redirect to https

RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourdomain.com [NC]
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [L,R=301]
(0 vote(s))
Helpful
Not helpful

Help Desk Software by Kayako