Re: mod_proxy+mod_rewrite: hiding redirection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Try playing with the P,R,L flags in the rewrite rule and see what happens :)
e.g.

RewriteRule $(.+) http://123.123.123.123/myscript?url=""> [P,R,L]
or
RewriteRule $(.+)
http://123.123.123.123/myscript?url=""> [R,L]
or
RewriteRule $(.+)
http://123.123.123.123/myscript?url=""> [P,L]

Cheers,

Igor

On Wed, Oct 28, 2009 at 8:55 AM, Marcos Mendez <marcosrmendez@xxxxxxxxx> wrote:
I'm using mod_proxy/mod_rewrite to redirect requests to a specific
script which handles them. For example:

<Proxy *>
RewriteEngine on
RewriteCond %{HTTP_HOST} !^123.123.123.123 [NC]
RewriteRule $(.+) http://123.123.123.123/myscript?url="">
</Proxy>

This is working great. The question is, can I hide that redirection
(
http://123.123.123.123/myscript?url="">) and keep the
requested url in the address bar somehow?

Regards,

Marcos

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:
http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux