Esattamente.
Nello specifico

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