RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]Hi there,
So I have an SSL certificate installed, but my base_url uses [[++site_url]] and still says 'http://www.domain.com'.
I have changed the server_protocol setting to https
I have emptied the cache
I have manually emptied the core/cache folder.
I've installed certs before and not had this problem!
I can't think what else I can do?
For now I have manually changed the base_url to 'https://www.domain.com' and it works fine, but I would much prefer to use '[[++site_url]]'
Quote from: tm2000 at Dec 12, 2017, 04:02 PMHi there,
So I have an SSL certificate installed, but my base_url uses [[++site_url]] and still says 'http://www.domain.com'.
I have changed the server_protocol setting to https
I have emptied the cache
I have manually emptied the core/cache folder.
I've installed certs before and not had this problem!
I can't think what else I can do?
For now I have manually changed the base_url to 'https://www.domain.com' and it works fine, but I would much prefer to use '[[++site_url]]'
Hi Andy,
I've got the same issue and nothing from suggested here in this thread is not working for me.
Have you fixed the issue? If so, please give me an idea how?
Thanks in advance!
<base href="[[!++site_url]]" />
Try this in the head section of all your templates (with the exclamation point):
<base href="[[!++site_url]]">
Try this in the head section of all your templates (with the exclamation point):
<base href="[[!++site_url]]">
Quote from: oleksiy.ostapenko at Jan 30, 2018, 09:56 AMQuote from: tm2000 at Dec 12, 2017, 04:02 PMHi there,
So I have an SSL certificate installed, but my base_url uses [[++site_url]] and still says 'http://www.domain.com'.
I have changed the server_protocol setting to https
I have emptied the cache
I have manually emptied the core/cache folder.
I've installed certs before and not had this problem!
I can't think what else I can do?
For now I have manually changed the base_url to 'https://www.domain.com' and it works fine, but I would much prefer to use '[[++site_url]]'
Hi Andy,
I've got the same issue and nothing from suggested here in this thread is not working for me.
Have you fixed the issue? If so, please give me an idea how?
Thanks in advance!
Nothing worked for me either - I ended up hardcoding the base_url with https://www.domain.com instead of using the tag [[++site_url]], which works, and as I'm not going to be changing the domain any time soon, this is OK for me - but still frustrating that it doesn't work - especially because I have several other sites which are all fine!
Would that solution work for you?
Andy
Hi have you make sure with your servers setup (usually in panels that there is no forced rules that rewrites with 301 the https to http ?
This happened to me on one plesk instance.
RewriteCond %{SERVER_PORT} !^443
RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
RewriteRule (.*) https://mysite.com/$1 [R=301,L]RewriteEngine On RewriteBase /