
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php

$fullUrl = $_SERVER[REQUEST_URI];
// split the url
$url = parse_url($fullUrl);
$url['path'] =  $url['path'] . "login/";
// create the new url with test in the path
$newUrl = $url['path']."?".$url['query'];
header("Location:" .$newUrl);

?>