// URLのパスを求める $path = dirname($_SERVER[‘SCRIPT_NAME’]); header ( “Location: $path/index.php?SID=$sid” ) ;