PHP Redirect

To redirect to home page from any other page. Use this as index.php file in directories that users are not allowed to browse.

<?php
 
header('Location: http://' . $_SERVER['SERVER_NAME'] . '/');
 
?>

Reference


Table of Contents
QR Code
QR Code tech:php:php_redirect (generated for current page)