Skip to content
On this page

SSL

Install SSL certificate on your hosting/VPS

You need to install an SSL certificate on your hosting/VPS first. You can purchase an SSL certificate or use free SSL, for example Let's Encrypt.

Redirect http to https

First you need to change APP_URL=http://domain.com to APP_URL=https://domain.com in your .env file.

Option 1: Add CORE_ENABLE_HTTPS_SUPPORT=true to .env.

Option 2: Add these lines to .env

CORE_FORCE_SCHEMA=https
CORE_FORCE_ROOT_URL=https://domain.com
CORE_ENABLE_HTTPS_SUPPORT=false

Option 3: If you are using Shared Hosting, you can Force HTTPS Redirection for your domains. Check this article.

If it doesn't work, you have to config it in .htaccess or Nginx config.

Crafted with ❤️