two domainnames on one server

A have two domainnames, say www.domainX.nl and www.domainY.nl. DomainY is a alias to DomainX.

If a user types www.domainX.nl, i want to sent him to a specific directory where the website stays. The same for domainY.nl.

The most simple solutions is to use virtual hosts in apacheserver, but my provider says i have to solve it with PHP.

Can anyone help my!?

 

 

 

 

Top