Currently I would like to redirect my contacts page from http to https.
I have managed to redirect this single page in the .htacces file by adding the following code:
RewriteCond %{HTTPS} off
RewriteRule ^(contacts/.*)$ https://www.domain.com/$1 [R=301,L]
This code works for my domain.
The problem arrives when I click on submit. The form does not submit correct after the redirect is turned on. The message of the indexcontroller: "Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us" is not appearing and we do not receive an email. For now I turned redirecting off in the .htacces file.
The contacts.xml can be found in app/design/front/base/default/layout/contacts.xml form.phtml is in app/design/frontend/base/default/template/contacts/form.phtml
I copied these two files in to my template in case I need to change them. I tried my utter best to find something similair, but I could not find anything that works. Please help.
Thanks in advance