Daily Archives: 24 February 2012


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