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

 

This post is also available in: Greek

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.