httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jos...@slive.ca>
Subject Re: mod_rewrite - changing a Post to a Get?
Date Tue, 07 May 2002 22:59:14 GMT
Jon Ferguson wrote:
> Hi,
> 
> I'm trying to use Apache 1.3 with Jakarta Tomcat 4.0 and need to rewrite
> a URL from a cgi script to an Action target within the Struts framework.
> 
> Here's my rule:
> 
> RewriteRule ^/posicart\.cgi$ /BCDweb/addToAndShowCart.do [R]
> 
> If I submit a form to the posicart.cgi URL using POST it Does get
> rewritten and passed on.. but as a GET!  Thus all my parameters are
> lost. 

See:
http://ppewww.ph.gla.ac.uk/~flavell/www/post-redirect.html

You can't really redirect POST requests reliably.  Instead, why don't 
you do an internal redirect (remove the [R]), and then apache will 
handle everything.

Joshua.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message