Skip to content

How to enable ‘https’ forcefully

Common Issues


Note: – You must add SSL certificate from your cpanel first.

To enable https forcefully, go to (your_project/.htaccess) file and add the conditions below:-

RewriteCond %{HTTPS} !=on

RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

See the screenshot below for help:-