301重定向到https 并且不带www跳转到带www

网站建设 2022-07-27 08:12www.1681989.com免费网站
Apache环境下,.htaess 伪静态让http 301重定向到https, 并且不带跳转到带 .htaess #开启伪静态 RewriteEnge On #http 301重定向到https, 并且不带跳转到带 RewriteCond %{HTTP_HOST} ^123. [NC] RewriteRule ^(.*)$ https://.123./ $1 [L,R=301] RewriteCond %{SERVER_PORT} 80 Rewrit […]




Apache环境下,.htaess 伪静态让http 301重定向到https, 并且不带跳转到带

.htaess

#开启伪静态
RewriteEnge On
#http 301重定向到https, 并且不带跳转到带
RewriteCond %{HTTP_HOST} ^123. [NC]
RewriteRule ^(.*)$ https://.123./$1 [L,R=301]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://.123./$1 [L,R=301]

上面3处123.改成你自己的域名即可


Copyright © 2016-2025 www.1681989.com 推火网 版权所有 Power by