Link to home
Start Free TrialLog in
Avatar of us111
us111Flag for Luxembourg

asked on

Url rewriting

how to redirect http://mail.mydomain.com
to http://www.otherdomain.com/othermail

many thanks
Avatar of caterham_www
caterham_www
Flag of Germany image

it depends...

If http://mail.mydomain.com is a separate account, you could use in a .htaccess file (if you don't have access to the configuration files)

Redirect 301 / http://www.otherdomain.com/othermail/

But if both domains are pointing to the same location, you must use mod_rewrite to check the HTTP_HOST.
Avatar of us111

ASKER

To be more precised, this is the same server and mod_rewrite is require for this purpose but how....
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of us111

ASKER

ok gonna try tonight