Re-Direct HTTP to HTTPS
Permalink Browser Info Environment
I wonder if you can 'shed any light' on this little problem?
I have purchased an SSL Certificate for a website that I built using Fundamental.
Currently the only way to get the website to present as HTTPS: is to enter the website usinghttp://www.db-security.co.uk , or enter the website and then force it to https:
Annoyingly, once is has 'entered' the https: , it will present https: in all the - very small number - pages until re-entering the website when it reverts to http: !
Previously on another website, using Cloneamental, I added the following to the htaccess:
RewriteEngine On
RewriteCond %{ENV:HTTPS} !=on
RewriteRule (.*)https://%{HTTP_HOST}%{REQUEST_URI}... [R=301,L]
but - unlike the Cloneamental website - the website will not be redirected when this code is added.
________________
I even tried the following but with the same 'non-result':
RewriteEngine On
RewriteCond %{HTTP_HOST} db-security\.co\.uk [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$https://www.db-security.co.uk/$1... [R,L]
_____________
Do you have any suggestions as to what I should do next?
I have purchased an SSL Certificate for a website that I built using Fundamental.
Currently the only way to get the website to present as HTTPS: is to enter the website usinghttp://www.db-security.co.uk , or enter the website and then force it to https:
Annoyingly, once is has 'entered' the https: , it will present https: in all the - very small number - pages until re-entering the website when it reverts to http: !
Previously on another website, using Cloneamental, I added the following to the htaccess:
RewriteEngine On
RewriteCond %{ENV:HTTPS} !=on
RewriteRule (.*)https://%{HTTP_HOST}%{REQUEST_URI}... [R=301,L]
but - unlike the Cloneamental website - the website will not be redirected when this code is added.
________________
I even tried the following but with the same 'non-result':
RewriteEngine On
RewriteCond %{HTTP_HOST} db-security\.co\.uk [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$https://www.db-security.co.uk/$1... [R,L]
_____________
Do you have any suggestions as to what I should do next?
Type: | Ticket |
---|---|
Status: | In Progress |
You will need to check your server setup to ensure redirects are enabled.