PHP: Full Redirect of Arguments in PHP


This is how we forward all arguments from one URL to another you need to put this in a .php file on your server (e.g index.php):

<?php
    header("Status: 301 Moved Permanently");
    header("Location:http://bytefreaks.net/university-of-cyprus".$_SERVER['QUERY_STRING']);
    exit;
?>

Example of Usage:

http://www.cs.ucy.ac.cy?/article

 

Leave a Reply