url
friendly, which is working very well, however I want to prohibit access to the file index.php
and index.php/
, I want that when accessing them it is redirected to the page home.php
How do I do this?
Do I have to change something in .htaccess
?
because the way I put down here to TRY solve the problem does not work, see:
$pag = ($_GET['pag']));
if ($pag == 'index.php' || $pag =='index.php/')
{
header("location: home");
}
The code above works perfectly for any other page, login, create-account, etc., less when it comes to index, it seems that it is not PERMITTED.
Does anyone know what to do?