301跳转(http跳转https不带www跳转到带www)
【301跳转(http跳转https不带www跳转到带www)】写在.htaccess中
一:http跳转https
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R=301,L]
二:不带www跳转到带www
RewriteCond %{http_host} ^ub07.com [NC]
RewriteRule ^(.*)$ http://www.ub07.com/$1 [L,R=301]
三:带www跳转到不带www
RewriteCond %{http_host} ^www.jipinji.cn [NC]
RewriteRule ^(.*)$ http://jipinji.cn/$1 [L,R=301]
推荐阅读
- 画解算法(1.|画解算法:1. 两数之和)
- ts泛型使用举例
- https请求被提早撤回
- HTTP高级(Cookie,Session|HTTP高级(Cookie,Session ,LocalStorage )
- 拒绝可以很艺术,或者很行为艺术。
- www和https://又被Chrome地址栏隐藏了
- Spring集成|Spring集成 Mina
- 零基础学习Python作业本(13)
- AnyProxy抓取http/https请求
- 网络编程基础--HTTP