Forum
Create a redirect from HTTP to HTTPS
I recently made a website with Perch go live through regular HTTP. The client then requested their hosting company to have an SSL cert placed on the domain, which they've done and is working fine for the HTTPS link, but not for the HTTPS link. The hosting Co are telling me to "to set redirections or primary address to one starting with https". They cannot do it through CPanel and Wordpress is normally straight forward. Is this something that I can easily do in Perch Admin settings or is it set through a config file? I've never heard or had to do this before and am a bit unsure... any ideas? thanks in advance.
Summary information
Perch: 3.1.1, PHP: 5.6.35, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, litespeed
Installed apps: content (3.1.1), assets (3.1.1), categories (3.1.1), perch_blog (5.6.1)
App runtimes: <?php $apps_list = array( 'content', 'perch_blog', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/mcevoycraig/public_html/perch
PERCH_CORE: /home/mcevoycraig/public_html/perch/core
PERCH_RESFILEPATH: /home/mcevoycraig/public_html/perch/resources
Image manipulation: GD
PHP limits: Max upload 100M, Max POST 64M, Memory: 128M, Total max file upload: 64M
F1: 3b606135b33e6a102526838f4152a807
Resource folder writeable: Yes
HTTP_HOST: www.mcevoycraig.ie
DOCUMENT_ROOT: /home/mcevoycraig/public_html
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
This is something you'd do in your Litespeed configuration.
https://www.litespeedtech.com/support/wiki/doku.php/litespeed_wiki:config:https-redirect
Thanks Drew. I've never heard of Litespeed configuration. I assume this is something the hosting co should be looking after?
Hello Cormac,
You can acheive this with a
.htaccess
file which is an Apache server configuration file.The following redirects all HTTP traffic to HTTPS:
Thanks Hussein.