Link to home
Start Free TrialLog in
Avatar of dlg654
dlg654

asked on

Redirect one URL to another in Apache 2

I look after an Apathe web server that has multiple web sites via vhosts files defined in /etc/apache2/vhosts.enabled

I have three sites www.anuenterprise.com.au, www.anuenterprise.com and www.anutech.com.au that resolve to the same IP. I would like to set up the following

user enters www.anuenterprise.com in browser and is redirected to www.anuenterprise.com.au
user enters www.anutech.com.au in browser and is redirected to www.anuenterprise.com.au

All attempt to redirect in the vhosts files has failed so far.
ASKER CERTIFIED SOLUTION
Avatar of dsmile
dsmile
Flag of Viet Nam 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