网站域名:https://www.chhxs.cn/ 做了https后,首页跳转是没问题的,输入http://www.chhxs.cn/或者chhxs.cn或者www.chhxs.cn都会自动跳转到https://www.chhxs.cn/但是内页的跳转有问题,https://www.chhxs.cn/a/rongyu/这样打开可以,但是把s去掉,http://www.chhxs.cn/a/rongyu/直接这样打来是不行的,自动跳转https后,cn/a中间的/会丢失不见了。就导致之前百度收录的内页http的无法正常跳转,打开都报错。
附上配置文件:
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.chhxs.cn/$1 [R,L]
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
请问哪里出问题了。。。