nginx设置301重定向的方法:
修改nginx中对应该网站的配置文件,例如:
#shuyeidc.com.conf #301-START if ($host ~ '^shuyeidc.com'){ return 301 http://shuyeidc.com$request_uri; } if ($host ~ '^shuyeidc.com'){ return 301 http://shuyeidc.com$request_uri; } #301-END
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/155280.html<