Hello,
I need it so when someone enters example.com or example.com/index.php it goes to index.php, otherwise it must go to redirect.php
I had this:
RewriteRule ^(.*).php$ index.php?id=$1 [L]
RewriteRule ^(.*)$ redirect.php?id=$1 [L]
But that seems to redirect everything to index.php...?
I need it so when someone enters example.com or example.com/index.php it goes to index.php, otherwise it must go to redirect.php
I had this:
RewriteRule ^(.*).php$ index.php?id=$1 [L]
RewriteRule ^(.*)$ redirect.php?id=$1 [L]
But that seems to redirect everything to index.php...?