Post by hamidg84 » Tue Feb 16, 2016 5:23 am

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

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by EvolveWebHosting » Tue Feb 16, 2016 8:34 am

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

Opencart Hosting Plans, Domain Registration, Microsoft and Google Email and More
Visit our website for great deals and most importantly, fast and friendly support - www.evolvewebhosting.com


User avatar
Active Member

Posts

Joined
Fri Mar 27, 2015 11:13 pm
Location - Denver, Colorado, USA

Post by hamidg84 » Tue Feb 23, 2016 6:08 am

Hi

I tried all this. Site stops working :-(

Active Member

Posts

Joined
Wed Feb 29, 2012 6:18 am

Post by IP_CAM » Tue Feb 23, 2016 9:31 am

hopefully, you did not try to edit a .htaccess file with MS Word, but use Notepad++, to do such work. ;)
Ernie
openshop.li

My Github OC Site: https://github.com/IP-CAM
5'600 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 8 guests