Esattamente.
Nello specifico
Codice PHP:
ifif(date('G') >= 0 && date('G') < 5)
{
header( "Location: index2.htm" );
}
elseif(date('G') >= 5 && date('G') <= 20)
{
header( "Location: index1.htm" );
}
else //la condizione non serve, saranno ovviamente gli orari non considerati prima
{
header( "Location: index3.htm" );
}