I have a general rewrite rule which works fine:
#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]
But when I attempt to use the following with https, I receive a "page not found" error, even though it does exist:
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]
What I am missing? Any help is greatly appreciated.
Thank you!