httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jon Ferguson <calliopes...@btinternet.com>
Subject Re: mod_rewrite - changing a Post to a Get?
Date Wed, 08 May 2002 10:17:18 GMT
Hi Joshua,

Thanks for the info...

I have not had any success with the internal redirect...   if I remove the
[R] then I get a 404 page not found error.

I'm using mod_jk to link up the back-end tomcat servers (it does do load
balancing).  I wonder if somehow it needs an external redirect for this to
work?

Cheers,
Jon

Joshua Slive wrote:

> 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


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


Mime
View raw message