I have SSL setup on a server. Using sling:Mappinng I can serve forms over https.
However after user visited any of the forms they remain using site over https.
How can I make sure that only forms are served over https and rest of the site over http?
repository structure is as follows:
mysite.com
+--content(should to be over http)
+--forms(should be over http)
+--form1(needs to be over https)
+--form1ThankYou(should be over http)
+--form2(needs to be over https)
+--form2ThankYou(should be over http)
+--moreContent1(should be over http)
+--moreContent2(should be over http)
+--moreContent3(should be over http)
I couldn't find any clear documentation on this will be grateful for any help.
Thanks
Ok so here is what I tried
map
+--http
+--example.com
+--forms
(sling:match "forms/(.*).html")
(sling:redirect "https://example.com/forms/$1.html)
This works
map
+--https
+--example.com
+--content1
(sling:match "content1/(.*).html")
(sling:redirect "http://example.com/content1/$1.html)
Doesn't Work
Any ideas?
Thanks