I am a completely clueless about PHP and attempted to add this in regardless.
Visiting /blog-1/index.html directly should redirect me to /blog-2/index.html or atleast that the idea...
<?php
global $url = "/blog-1/index.html";
if ($_SERVER['HTTP_REFERER'] == global $url) {
    header('Location: /blog-2/index.html'); 
    exit();
}
?>
I keep getting -
Parse error: syntax error, unexpected '=', expecting ',' or ';'
Any help is truly appreciated. Thanks!
 
     
     
     
    