HTTPS not working in my project

Laraship QuestionsCategory: ConfigurationHTTPS not working in my project
ATMA asked 3 years ago
Hi there, I have a dedicated server with the digital certificate installed (https). But when I access Larashi platform HTTPS is not working, only on HTTP. Can you help me to force all site to HTTPS? Do I need change .ENV and CONFIG/APP.php files?
1 Answers
laraship Staff answered 3 years ago
Hello, You can add force HTTPS inside the htaccess file under the public folder
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]