0
我有一个问题,我需要将用户重定向到https,当它来自http,但也需要第二个规则将URL提供给MVC。两条规则都起作用,但两者并没有结合。为什么?需要帮助来结合两个规则.htaccess
RewriteCond %{HTTP_HOST} ^pamisla\.com [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://pamisla.com
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^((?s).*)$ index.php?_url=$1 [QSA,L]
你是如何将它们结合在一起的? – miken32
以某种方式,如果有人转到http:// example.com/cart.php,转换成https:// exmaple.com/index.php?_url=cart.php –
您说过“这两个工作,但不是当合并“,那么你是如何将它们结合起来的? – miken32