Make a Redirect in PHP
In this post we will give you information about Make a Redirect in PHP. Hear we will give you detail about Make a Redirect in PHPAnd how to use it also give you demo for it if it is necessary.
Use the PHP header() Function
You can simply use the PHP header() function to redirect a user to a different page.
The PHP in the following example will redirect the user from the page in which it is placed to the URL http://www.example.com/another-page.php. You can also specify relative URLs.
<?php header("Location: "); exit(); ?>
If you want to redirect the users from old page to a new page on a permanent basis then also mention HTTP response in the header() function as shown in the following example, so that search engines transfer “page rank” from the old page to the new page.
<?php // 301 Moved Permanently header("Location: ", true, 301); exit(); ?>
Hope this and post will helped you for implement Make a Redirect in PHP. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and Keep reading our blogs