Redirect to https will drop POST params

Fix it!!

Redirect to https will drop POST params

Postby ProXy » Tue Apr 10, 2007 2:41 am

Hello there,

I use this rule to redirect to SSL if the called site is located in the diricetory "secure":

RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^secure(/?|/.*)$ https://%{HTTP_HOST}:443/secure$1 [R=301,L]

The rule works fine, but the POST data is lost during the redirect. Is it possible to make a external redirect without losing those data? One of the submitted fields contains a password, so I cannot change method=POST to method=GET due to security reasons...

Best regards,
ProXy
ProXy
 
Posts: 1
Joined: Tue Apr 10, 2007 2:33 am

Postby richardk » Tue Apr 10, 2007 12:18 pm

it possible to make a external redirect without losing those data?

Not that i know of. You could try a 302 redirect. Or else use an absolute path in the form action attribute.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Security with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 13 guests

cron