index.php: fix infinite redirect on 0.7 install (#754)