Canjucks Posted March 11, 2021 Posted March 11, 2021 Place this in your init.php file around line 27 so your domain redirects from http to https Quote if (empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] === "off") { $location = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; header('HTTP/1.1 301 Moved Permanently'); header('Location: ' . $location); exit; } Thanks to @Dayo for providing on Discord chat group thought I'd share since it might come up and pretty sure anyone would like to use it. Something like this can be used in your .htaccess file as well: Quote RewriteEngine On RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] Thanks Mike for providing. 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.