1
Hello, I’m making use of the url
friendly, which is working very well, however I want to prohibit access to the archive index.php
and index.php/
, I want when accessing them to be redirected to the page home.php
How do I do this?
I have to change something in .htaccess
?
because the way I put it down here to TRY to solve the problem doesn’t work, see:
$pag = ($_GET['pag']));
if ($pag == 'index.php' || $pag =='index.php/')
{
header("location: home");
}
The above code works right for any other page, login, create account, etc, except when it comes to the index, it seems that it is NOT ALLOWED.
Someone knows what to do?
would not be
location:home.php
instead oflocation:home
– user60252