Código HTML:
<VirtualHost *:80> ServerAdmin localhost@localhost DocumentRoot "C:/xampp/htdocs/xampp" ServerName localhost ServerAlias localhost ErrorLog "logs/localhost-error.log" CustomLog "logs/localhost.localhost-access.log" combined </VirtualHost> <VirtualHost *:80> ServerAdmin localhost@localhost DocumentRoot "C:/xampp/phpmyadmin/" ServerName localhost/phpmyadmin ErrorLog "logs/phpmyadmin.es-error.log" CustomLog "logs/phpmyadmin.localhost-access.log" combined </VirtualHost> <VirtualHost *:80> ServerAdmin [email protected] DocumentRoot "C:/xampp/htdocs/lahuertica/" ServerName lahuertica ServerAlias lahuertica.com *.lahuertica.com RewriteEngine on RewriteCond %{HTTP_HOST} !^www\.lahuertica\.com$ RewriteRule ^(.*)$ http://www.lahuertica.com$1 [L,R=301] ErrorLog "logs/lahuertica.com-error.log" CustomLog "logs/lahuertica.localhost-access.log" combined </VirtualHost>
Gracias.