I have two virtual hosts in my apache, example:
vhost.com
vhost.mx
When the user enters vhost.com he has to direct me to vhost.mx from the index.php of vhost.com
<?php header("Location: vhost.mx"); ?>
when the index.php of vhost.com is executed the URL is of the following form: www.vhost.com/www.vhost.mx and this gives me an error of URL
Do you know that you must write the two URLs?