Hi
I have looked through old forum posts and have got myself completely confused.
My site is https://savannahsunset.com on OC Version 3.0.3.6
When I use www. in front of my sitename the icons for Add to Car, Wishlist and compare are missing and I get an "error undefined" on the products on the home page. See image attached.
Looking through old forum posts it looks like I need to add something into the htaccess and possibly config files. Please can you help me by giving me exactly what I need to change and where to make the changes and in which files.
Thanks
Thanks for this but it is precisely the reason I got confused - it does not help me in any way as there is so much code and no real solution.
Please help.
I need in detail how to make the website work with both https://www.mydomain.com as well as the default of https://mydomain.com. It is not the http to https - I have both working on https. I need to know how to get the site to accept the www and provide all the functionality I get without it.
Lots of different ways to do that. One such example. After RewriteEngine On.
Code: Select all
RewriteCond %{HTTP_HOST} ^www\.yourdomain\.com$ [NC]
RewriteRule ^(.*)$ http://yourdomain.com/$1 [L,R=301]
The solution above looks a little bit incomplete.
Add this to .htaccess (the RewriteBase / should already be there so add the two lines below it)
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Then make sure www is included in the HTTP and HTTPS URL section of both config.php files.
Add this to .htaccess (the RewriteBase / should already be there so add the two lines below it)
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
Then make sure www is included in the HTTP and HTTPS URL section of both config.php files.
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.evolvewebhost.com
Active Member
Who is online
Users browsing this forum: No registered users and 57 guests