??? www //------------------------------------------------------------------------------ $rurl=$_SERVER['REQUEST_URI']; $rhost = $_SERVER['HTTP_HOST']; if ((strpos($rhost,'ww.')) && empty($_POST)) { $nhost = str_replace('www.','',$rhost); header("HTTP/1.1 301 Moved Permanently"); header("Location: http://".$nhost.$rurl); exit(); } //------------------------------------------------------------------------------ // ??????? /index.php //------------------------------------------------------------------------------ $rurl = $_SERVER['REQUEST_URI']; if (($rurl=='/index.php')&&(empty($_POST))){ header("HTTP/1.1 301 Moved Permanently"); header("Location: /"); exit(); } //------------------------------------------------------------------------------ // ??????? /index.php?route=common/home //------------------------------------------------------------------------------ $rurl = $_SERVER['REQUEST_URI']; if (($rurl=='/index.php?route=common/home')&&(empty($_POST))){ header("HTTP/1.1 301 Moved Permanently"); header("Location: /"); exit(); } //------------------------------------------------------------------------------ //------------------------------------------------------------------------------ $rurl = $_SERVER['REQUEST_URI']; if ((strpos($rurl,'/index.php/')!==False)&&(empty($_POST))){ header("HTTP/1.1 301 Moved Permanently"); header("Location: ".str_replace('/index.php/','/',$rurl)); exit(); } //------------------------------------------------------------------------------