You want to use an HTTP Redirect using the header
command in PHP.
So, in order to redirect someone, you must put this command before any whitespace in your program (spaces or HTML outside of the PHP tags):
<?php
header("Location: http://localhost/abc");
?>
This will send a Redirect Header to the browser, which will then redirect the user.
Because it is up to the 'browser' to redirect the user, you want to make sure no more PHP is outputted onto the screen, so use either exit
or die
to make sure no more code is ran
<?php
header("Location: http://localhost/abc");
exit();
?>
or,
<?php
header("Location: http://localhost/abc");
die("Your browser does not support redirection. Please go to http://localhost/abc.");
?>