Page 1 of 1
How to add www to domain
Posted: Tue Feb 16, 2016 5:23 am
by hamidg84
Hi
My website shows as
http://xxxx.co.uk in config.php and Setting/Stores.
How can i add www to the URL? I tried changing in config.php but then https does not work.
Where do i need to make changes?
Thanks
Re: How to add www to domain
Posted: Tue Feb 16, 2016 8:34 am
by EvolveWebHosting
You need to make sure a of a few things:
1) Make sure your SSL certificate supports both non www and www (mainly the www since you want to change to that)
2) Update both config.php files to use www
3) Add a 301 redirect in your .htaccess file in the Rewrite section, usually right after RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
You can use this site to see if your SSL certificate supports www and non www for your domain:
https://www.sslshopper.com/ssl-checker.html
Re: How to add www to domain
Posted: Tue Feb 23, 2016 6:08 am
by hamidg84
Hi
I tried all this. Site stops working :-(
Re: How to add www to domain
Posted: Tue Feb 23, 2016 9:31 am
by IP_CAM
hopefully, you did not try to edit a
.htaccess file with
MS Word, but use
Notepad++, to do such work.
Ernie
openshop.li