Posted - 03/14/2020 : 04:58:27
Hi Trace This should do the trick (changing of course example.com for your own domain) ... <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule (.*) https://www.example.com/$1 [L,R=301] </IfModule> This covers both HTTPS and non-www. to www. but it may be that for instance you don't have the whole site on SSL in which case... <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^example\.com [NC] RewriteRule (.*) http://www.example.com/$1 [L,R=301] </IfModule> Do take a backup of the .htaccess before doing this as it can cause errors editing the .htaccess file. Vince Click Here for Shopping Cart SoftwareClick Here to sign up for our newsletterClick Here for the latest updater
|