htaccess rule for redirecting when parameters are present – Apache
RewriteEngine On RewriteRule ^$ /index.phtml [R,L] RewriteRule ^index.phtml.+$ /index.php$1 [R,L] I have 2 urls like https://www.example.com/index.phtml and https://www.example.com/index.php which both point to very different sites. I want to redirect to index.php in case there are any parameters found after index.phtml.…