You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Melanie Pfefer <me...@yahoo.co.uk> on 2008/02/28 09:36:44 UTC
[users@httpd] URL redirection
Hello,
a servlet is running on port 9000 while apache in
running on port 80.
The first request I received is to have
http://server1/OpenObject?doc=ERW
changed to
http://server1:9000/OpenObject?doc=ERW
I changed it using
RewriteEngine On
RewriteRule ^/(OpenObject.*) http://server1:9000/$1
[R=301,L]
Is there a way to change this behavior so that users
who type
http://server1/OpenObject?doc=ERW
will receive the same content of
http://server1:9000/OpenObject?doc=ERW but the URL
does not change (stays
http://server1/OpenObject?doc=ERW)
thanks
___________________________________________________________
Yahoo! Answers - Got a question? Someone out there knows the answer. Try it
now.
http://uk.answers.yahoo.com/
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] URL redirection
Posted by Sean Allen <se...@ardishealth.com>.
Dont do a R for redirect ( that tells the users browser to go to this
new url )
Setup proxying and use the P flag in your rewrite.
On Feb 28, 2008, at 3:36 AM, Melanie Pfefer wrote:
> Hello,
>
> a servlet is running on port 9000 while apache in
> running on port 80.
> The first request I received is to have
> http://server1/OpenObject?doc=ERW
>
> changed to
> http://server1:9000/OpenObject?doc=ERW
>
> I changed it using
>
> RewriteEngine On
> RewriteRule ^/(OpenObject.*) http://server1:9000/$1
> [R=301,L]
>
> Is there a way to change this behavior so that users
> who type
> http://server1/OpenObject?doc=ERW
>
> will receive the same content of
> http://server1:9000/OpenObject?doc=ERW but the URL
> does not change (stays
> http://server1/OpenObject?doc=ERW)
>
> thanks
>
>
> ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer.
> Try it
> now.
> http://uk.answers.yahoo.com/
>
> ---------------------------------------------------------------------
> 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@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org