Hi we have developed a web app in laravel. Now we have two sub domains:
Devpanel.example.com Panel.example.com
We want to make sure that we redirect www and http traffic to https and non www. Example:
Http:// panel. example. com to https:// panel. example. com
Http:// www. panel. example .com to https:// panel. example .com
Also any subpages shall be moved as an example http:// panel. example. com/users shall go to https:// panel. example. com/users and http:// www. panel .example .com/users shall go to https:// panel. example .com/users
If we are logged in to the app of course it should redirect us to the logged in state for all above scenarios.
Since this app is done in laravel it appends index.php in the URL when http is redirected to https. How can we make sure to remove this?
Any help on the above would be amazing.