$pathkey='-'; DoSEO(); if($_GET[mode]=="siteinfo"){ header("Location:/siteinfo.html"); }elseif($_GET[mode]=="privacy"){ header("Location:/privacy.html"); }else{ header("Location:/"); } exit; /* SEO対策処理 */ function DoSEO(){ if ( preg_match ("/".$GLOBALS['pathkey']."/i", $_SERVER['PATH_INFO']) ){ $a = str_replace("/".$GLOBALS['pathkey']."/", "", $_SERVER['PATH_INFO']); $a = str_replace("/", "&", $a); $a = str_replace("&$", "", $a); $a = preg_replace("/&$/", "", $a); parse_str($a, $_GET); unset($a); } } ?>