The code below will show you can use PHP to redirect the user to a different page.
The Code
1 2 3 4 5 6 |
<?php $errorPage = "https://mysite.com/errorpage.php"; header( 'Location: ' . $errorPage ) ; // Stop rendering the rest of the page die(); ?> |