NYCPHP Meetup

NYPHP.org

[nycphp-talk] OT: Apache Redirection

Gautam Guliani gautamg at panix.com
Tue Nov 19 22:07:56 EST 2002


David's solution was close to this.
Here is the solution

RewriteEngine on
RewriteRule ^webmail\\..*$ http://mydomain.com:8001/ [L,R]

Strictly speaking it redirects domains *beginning* with webmail
Which is what I think you want anyway.
If you really want domains *containing* webmail then

RewriteEngine on
RewriteRule webmail\\..*$ http://mydomain.com:8001/ [L,R]

--
Gautam



On 11/19/02 9:34 PM, "evan heller" <evan.heller at alum.rpi.edu> wrote:

> Ok,
> 
> So using mod_rewrite, how do I say, :
> 
> if the domain contains webmail.*
> the redirect to mydomain.com:8001
> 
> and will this work universally?
> 
> -Evan
> 
> --------
> Evan Heller     
> evan.heller at alum.rpi.edu
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 
> 
> 
> 




More information about the talk mailing list