httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Slive" <jos...@slive.ca>
Subject RE: RewriteMap not allowed here
Date Mon, 04 Feb 2002 22:18:48 GMT

> From: Korey G. [mailto:korey@awpg.com]

>
> What Im trying to do is to have everyone
>   from ServerA.com go to index.html and everyone
> from ServerB.com to go to index2.html

By "from ServerA.com" I assume you mean they clicked on a link on a page at
ServerA.com.  If my assumption is correct, then you want something like:

RewriteCond %{HTTP_REFERER} ^servera.com$ [NC]
RewriteRule (.*) /index.html
RewriteCond %{HTTP_REFERER} ^serverb.com$ [NC]
RewriteRule (.*) /index2.html

Of course, you weren't very specific in your requirements, so this is just a
guess.

Joshua.


---------------------------------------------------------------------
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
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message