I have a site that uses mod_rewrite
to make the url friendly, when requesting a page for http protocol if I take the rules that I have in the .htaccess, but if I make a request for https, it does not take them well
my .htaccess would be something like this:
Options -MultiViews
Options All -Indexes
RewriteEngine On
RewriteRule ^panel/([a-zA-Z0-9-_/]*)?$ api/admin_dev.php?show=$1 [L]
RewriteRule ^[a-zA-Z0-9-_/]*$ index.html [NC,L]
where the index.html would be the index of a page made with react, if I navigate to this route link it's good for me php script is in the directory public_html / api / admin_dev.php, if I browse to link or link I'm fine with the page made in react. Now if I navigate to those same url but with https always enter the page react as if I did not take into account the rule for when it comes "panel" in the url