我希望可以htpp访问可以跳转到https上,同时去掉访问网站时出现的index.php
访问http://www.域名.com/index.php/1.html
可以直接跳转到 https://www.域名.com/1.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{SERVER_NAME}/$1 [R]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>
现在的伪静态是这样的,但是没办法跳转https
求大神指导。
可以这么写:
今天做这个也碰到同样的需求,有看到这个链接:https://www.sslshopper.com/ap...
现在我的规则就是上方的,可以使用。