Forum Moderators: phranque
I tried a couple of combinations that I have found here, but can't get anything to work.
I want to force http to https, and keep the entire URL and not lose any post data.
I've tried this and various combinations in .htaccess-
RewriteEngine On
RewriteCond %{SERVER_PORT}!443
RewriteRule ^(.*)$ [subdomain.domain.com...] [R,L]
If someone tries to access: [subdomain.domain.com...]
they should be sent to:
[subdomain.domain.com...]
Also, if a post is done to: [subdomain.domain.com...]
the post should be made to:
[subdomain.domain.com...]
I can't get it to work. Any advice?
Welcome to WebmasterWorld!
I don't think you can redirect POSTs to https. It's a security issue, because otherwise, a malicious webmaster could redirect the POST data anywhere. Put the page that generates the POST in the https space, and then you can post to https from there.
If you don't get a better answer, that's something to try.
Jim