Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Dikanio's avatar

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:)

0 likes
2 replies

Please or to participate in this conversation.