NYCPHP Meetup

NYPHP.org

[nycphp-talk] OT: Apache Redirection

David Sklar sklar at sklar.com
Tue Nov 19 10:44:48 EST 2002


If you have mod_rewrite, put this in the <VirtualHost> config for
webmail.mydomain.com:

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

-dave

> -----Original Message-----
> From: evan heller [mailto:evan.heller at alum.rpi.edu]
> Sent: Tuesday, November 19, 2002 10:16 AM
> To: NYPHP Talk
> Subject: [nycphp-talk] OT: Apache Redirection
>
>
> Question -
>
> Does anybody know to to use apache to do the
> following:
>
> redirect all requests for
> http://webmail.mydomain.com/ to
> http://mydomain.com:8001/
>
> Here's the problem, since I can do this at the dns
> level without some sort of dirty coding or using
> linux (yes, I'm a windows user) I figured maybe
> the virtual hosting or url-rewriting features of
> apache could do it for me. Any suggestions?
>
> -Evan
>
>
> --- Unsubscribe at http://nyphp.org/list/ ---
>




More information about the talk mailing list