On Mon, Dec 13, 2004 at 01:02:42PM +0100, Tom Schindl wrote:
...
> > if ($content =~ /some_regex/){
> > # redirect
> > } else {
> > # continue with post
> > return OK;
> > }
> >}
...
> The problem with POSTED data is that you can not read them more than
> once you can think of it like STDIN when read once you can not go back
> and read it once more.
...
> In mp2 you could also use an input-filter for this purpose.
Or, if the rewrite rules are not dynamic, you could probably get away
with just using mod_rewrite. You can use RewriteCond %{HTTP_HOST} to
match on the some_regex, and RewriteRule to redirect or rewrite.
Some more info here:
http://httpd.apache.org/docs/mod/mod_rewrite.html
http://httpd.apache.org/docs-2.0/misc/rewriteguide.html
-R
--
Reenen C Kroukamp <[EMAIL PROTECTED]>
Qualica Technologies (Pty) Ltd
http://www.qualica.com/
--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html