echo file_get_contents('static/HOME'); ?>
$items=file('redirect.csv'); foreach($items AS $item) { list($from,$to)=explode(';',$item); $redirect[$from]=$to; } $uri=substr($_SERVER['REQUEST_URI'],1); if(array_key_exists($uri,$redirect)) { $uri_new=$redirect[$uri]; header('HTTP/1.1 301 Moved Permanently'); /* header('Location: http://www.konferencja.fizjoterapia.pl/'.$uri_new); */ /* header('Location: http://www.ptug2016.pl'); */ } /* header('Location: http://www.ptug2016.pl'); */ ?>