ssl域名做301的方法:
在apache环境下,新建一个.htaccess文件,添加以下代码,将.htaccess文件放在网站根目录便可,代码以下:
#将https访问301重定向至http
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_PORT} !^80$
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI} [L,R=301]
本文来源:https://www.yuntue.com/post/61157.html | 云服务器网,转载请注明出处!

微信扫一扫打赏
支付宝扫一扫打赏