Post by amongCart » Tue Dec 17, 2024 4:45 pm

I have update the config.php in both location but can NOT change the htaccess update with

i used this info here:
https://www.fastcomet.com/blog/how-to-f ... ns-problem

## original
#RewriteCond %{HTTPS_HOST} !^www\.
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

As if i do the site changes from https//example.com to htts://www.www.example.com

When I disable in the client broswer CROS security the site works as expected.

Error in browser console CORS Missing Allow Origin

other info i have two opencart on the same box that (might) impact it.
when i go dirrectly to the website with https://www.example.com the icons do not work
but when i go to the web site with https://example.com the icons do work.

paid template used mahardhi
php version PHP Version 8.2.18
open cart version 4.0.2.3

Newbie

Posts

Joined
Tue Dec 17, 2024 3:56 am

Post by paulfeakins » Wed Dec 18, 2024 1:06 am

amongCart wrote:
Tue Dec 17, 2024 4:45 pm

Code: Select all

#RewriteCond %{HTTPS_HOST} !^www\.
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
I can't really work out what you're trying to do but those lines are commented out for a start.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by khnaz35 » Wed Dec 18, 2024 1:51 am

Perhaps its time to hire a developer then? Drop me email for fix

Got an urgent question that’s keeping you up at night? There might just be a magical inbox ready to help: khnaz35@gmail.com
Enjoy nature ;) :) :-*


User avatar
Active Member

Posts

Joined
Mon Aug 27, 2018 11:30 pm
Location - Malaysia
Who is online

Users browsing this forum: No registered users and 8 guests