How can i switch to HTTPS URL after installing to HTTP?

0
307

You have to navigate to application/config/app-config.php and change the constant APP_BASE_URL from starting from http to https.

If you have already configured cron_job with http:// starting url, make sure that you update the cron job url to start with https://

In case the .htaccess code below do not work on your server you need to consult with your server administrator to adjust the .htaccess code.

If you want to force it you will need to add suitable htaccess code to fit for your needs.
You can try this one and should work good:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

LEAVE A REPLY

Please enter your comment!
Please enter your name here