Hey All, I'm trying to use a RewriteRule to redirect a page from https to http pass some variables along with it. My script does not receive the parameters after the redirect. The RewriteRule is a pretty simple one. RewriteRule !^/secure/(.*) http://%{SERVER_NAME}%{REQUEST_URI} [R=302,L] Can this be done? I've tried several variations using %{QUERY_STRING} without any luck. Can you help a fellow nerd out? Thanks ken
POST variables are not part of the URI or the query string so neither of these will work. You could achieve what you want by sending a little bit of javascript back to the user that created a form with the correct hidden <input> tags and an action attribute that was the http version of the page and then submitted the form. I would hesitate to do this, however, because it will confuse the user and expose their supposedly private details. Imagine that they look and see that they are on a secure server (starts with https://) and that the form they are submitting also goes to a secure server, they would think that everything is secure. But when you do this redirect and send the form variables along with the redirect all of the information they just submitted thinking it was secure will now be sent unencrypted to the non-secure version. You might be best off grabbing the POST variables in PHP on the secure site, doing what you need to with them and just sending a redirect after you are done and don't have to worry about the POST variables any more.