中卫301重定向到https 并且不带www跳转到带www
Apache环境下,.htaccess伪静态让http301重定向到https,并且不带www跳转到带www.htaccess#开启伪静态RewriteEngineOn#http301重定向到https,并且不带www跳转到带wwwRewriteCond%{HTTP_HOST}^123.com[NC]RewriteRule^(.*)$https://www.123.com/$1[L,R=301]RewriteCond%{SERVER_PORT}80RewriteRule^(.*)$https://www.123.com/
Apache环境下,.htaccess伪静态让http301重定向到https,并且不带www跳转到带www
.htaccess
#开启伪静态RewriteEngineOn#http301重定向到https,并且不带www跳转到带wwwRewriteCond%{HTTP_HOST}^123.com[NC]RewriteRule^(.*)$https://www.123.com/$1[L,R=301]RewriteCond%{SERVER_PORT}80RewriteRule^(.*)$https://www.123.com/$1[L,R=301]
上面3处123.com改成你自己的域名即可