





header("Расположение: ".$_SERVER['REQUEST_URI']);
Вы можете использовать этот код в своем условии if
header( "Location: index.php" );
Вам просто нужно проверить условие, если оно верно, а затем обновить страницу.
<?php $refresh = 'Yes'; // lets assume the refresh condition is yes
if (isset($refresh) && $refresh == 'Yes'){ // or simply you can check by isset only no need to check for $refresh == 'Yes'
header("Location:current_page.php");
$refresh= false; // if you don't want to refresh the page again without any condition comes true.
}
?>