地址:apps/common/HomeController.php
class HomeController extends Controller
{
public function __construct()
{
//兼容模式301跳转伪静态模式
if(strpos($_SERVER['REQUEST_URI'],"?")){
$url_new = substr_replace($_SERVER['REQUEST_URI'],'',strpos($_SERVER['REQUEST_URI'],"?"),1);
header("HTTP/1.1 301 Moved Permanently" );
header("Location:{$url_new}");
}
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!