You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modules-dev@httpd.apache.org by prasanna <pr...@msys-tech.com> on 2007/09/27 15:11:33 UTC

Need to divert the request

Hi,

I have involved in developing a module which needs to divert the 
incoming request to almost a new URL. I have changed the uri info in the 
request_rec, but it seems, changes in request_rec doesn't affect the 
request processing. I have implemented this in mod_proxy.

Any help to divert the url request to new url without browser knowledge?

Thanks in Advance!

Re: Need to divert the request

Posted by Nick Kew <ni...@webthing.com>.
On Thu, 27 Sep 2007 18:41:33 +0530
prasanna <pr...@msys-tech.com> wrote:

> Hi,
> 
> I have involved in developing a module which needs to divert the 
> incoming request to almost a new URL. I have changed the uri info in
> the request_rec, but it seems, changes in request_rec doesn't affect
> the request processing.

You appear to want the ap_internal_redirect API.  There are plenty
of examples in the standard source: from mod_alias and mod_rewrite
through mod_dir and mod_negotiation to mod_cgi & friends.

-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Re: Need to divert the request

Posted by Arturo 'Buanzo' Busleiman <bu...@buanzo.com.ar>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

prasanna wrote:
> Any help to divert the url request to new url without browser knowledge?

mod_rewrite ?

- --
Arturo "Buanzo" Busleiman - Consultor Independiente en Seguridad Informatica
Servicios Ofrecidos: http://www.buanzo.com.ar/pro/
Unase a los Foros GNU/Buanzo - La palabra Comunidad en su maxima expresion.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG+65tAlpOsGhXcE0RCiMKAJ91/CVO2/SmYjk4rTKBkj+QErmofwCeKZ47
MxUsyb6NJWyAHj+sIOsqYf8=
=pbwS
-----END PGP SIGNATURE-----