Follow this tutorial and you should be good to go: https://www.inmotionhosting.com/support/website/ssl/how-to-force-https-using-the-htaccess-file
Sep 9, 2018
2
Level 1
Laravel index.php
Hi, i put this on my htaccess RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
so everytime user try to access my website with http it change to https the problem is when it change to https the url show the index.php for example i try to access using http:://www.example.com/login and it change to https://www.example.com/index.php. what i want is when someone access using this http:://www.example.com/login it only change to https://www.example.com/login not the index.php. can someone explain to me how to do that
thanks:)
Level 88
1 like
Please or to participate in this conversation.