.htaccess? redirect domain to subfolder

Here is my current setup.

have a site at www.ptiphoenix.com

have some other domains pointed to that domain (so they just load the ptiphoex.com page.
example: www.vzsoft.com

currently im using this code to redirct vzsoft.com to a subfolder:

if ($_SERVER['HTTP_HOST'] == "www.vzsoft.com") header("Location: /products/software/");

so when someone goes to www.vzsoft.com they auto goto www.vzsoft.com/products/software/

but what i want is so they goto that folder "/products/software" but it is hidden in the url. so its just vzsoft.com


how can I do this? with .htaccess, code or some other server side setting/solution?

 

 

 

 

Top