httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jack Elliston" <ellis...@benedictine.edu>
Subject [users@httpd] mod-rewrite question
Date Thu, 23 Jan 2003 18:00:31 GMT
This question is similar to the recent thread related to mod-rewrite and
keeping the original URL.

Based on reading the other thread it sounds like I need to use mod-proxy but
let me ask anyway to confirm.

Here is what I want

Local site: www.foo.com
Other site: www.bar.com

I want all traffic for www.foo.com with "students.asp" in the url to get the
content for those pages from www.bar.com with everything in the path simply
passed on.  I prefer to deliver to the client the
www.foo.com/students.asp?xxxx rather than the www.bar.com/students.asp?xxxx

I have mod-rewrite installed and I am doing some of this sort of thing
locally but not across domains/machines.

My current rewrite rule:

   RewriteCond %{REQUEST_URI} ^/students.asp(.*)
   RewriteRule  ^/(.*) http://www.bar.com/$1 [P]

The above generates a 403 Forbidden error while a "[R]" or no option all
redirect and display the www.bar.com version of the URL.

Is this doable in mod-rewrite?  I potentially will have a couple of more
complex scenarios if I get this working.

Thanks for your help,
----------------------------------------
Jack Elliston
Director, Computing and Network Services
Benedictine College
(913) 360-7372


---------------------------------------------------------------------
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


Mime
View raw message