HTTPS not working in my project

Laraship QuestionsCategory: ConfigurationHTTPS not working in my project
ATMA asked 4 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?
Attachments
1 Answers
laraship Staff answered 4 years ago
Hello, You can add force HTTPS inside the htaccess file under the public folder https://stackoverflow.com/questions/44006146/laravel-how-to-force-https
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]