我有一个很好的通用重写规则:
#HTTPS
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^(www\.)?monnaie.ca
RewriteRule ^(.*)$ https://www.mint.ca/store/template/home.jsp?lang=fr_CA [R=301,L,QSA,NC]
#HTTP
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^(www\.)?monnaie.ca
RewriteRule ^(.*)$ https://www.mint.ca/store/template/home.jsp?lang=fr_CA [R=301,L,QSA,NC]
但是,当我尝试将以下内容与 https 一起使用时,我收到“找不到页面”错误,即使它确实存在:
RewriteCond %{HTTP_HOST} (www\.)?monnaie.ca
RewriteRule ^/insuline$ https://www.mint.ca/store/microsite/?site=insulin&lang=fr_CA&rcmeid=van_insullinFR [R=301,L,QSA,NC]
我错过了什么?任何帮助是极大的赞赏。
谢谢!