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?

Type: Ticket
Status: In Progress
tonyharmancouk
View Replies:
c5hub replied on at Permalink Reply
c5hub
Themes do not control redirections.

You will need to check your server setup to ensure redirects are enabled.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.6
Version Installed - 8.5.6
Database Version - 20210622145600

# Database Information
Version: 10.1.48-MariaDB
SQL Mode: NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Fundamental (4.0.8)

# concrete5 Overrides
None

# concrete5 Cache Settings
Block Cache - Off
Overrides Cache - Off
Full Page Caching - Off
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache/2.4.51 (Unix)

# Server API
cgi-fcgi

# PHP Version
7.0.33

# PHP Extensions
bcmath, bz2, calendar, cgi-fcgi, Core, ctype, curl, date, dba, dom, enchant, exif, fileinfo, filter, ftp, gd, gettext, gmp, hash, iconv, imap, intl, ionCube Loader, json, ldap, libxml, mbstring, mcrypt, mysqli, mysqlnd, odbc, openssl, pcntl, pcre, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, recode, Reflection, session, shmop, SimpleXML, soap, sockets, SPL, sqlite3, standard, sysvmsg, sysvsem, sysvshm, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, Zend OPcache, zip, zlib

# PHP Settings
max_execution_time - 30
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 128M
post_max_size - 8M
sql.safe_mode - Off
upload_max_filesize - 64M
ic24.api.max_timeout - 7
ldap.max_links - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
odbc.max_links - Unlimited
odbc.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
pgsql.max_links - Unlimited
pgsql.max_persistent - Unlimited
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200
soap.wsdl_cache_limit - 5
opcache.max_accelerated_files - 2000
opcache.max_file_size - 0
opcache.max_wasted_percentage - 5

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.71 Safari/537.36 Edg/97.0.1072.62

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.