1 2 3 4
<?php $host = $_SERVER['HTTP_HOST']; header("Location: http://$host/message-id/" . $_GET["q"]); ?>