How enable the HTTPs

1. Enable HTTPs in .env file

It is generally a good idea to encrypt traffic to your website. Do this by using HTTPS for your website. There are many benefits to moving to HTTPS. It also gives visitors to your site a feeling of security and trust.

Open your .env file then add the code: APP_HTTPS=true to enable HTTPS 



2. Enable auto redirect to HTTPS in .htaccess file

AddHandler application/x-httpd-php80 php <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] </IfModule> RewriteEngine On RewriteCond %{HTTP_HOST} yourdomain\.com [NC] RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$$1[R,L]