I'm using XAMPP during my system. I setup the virtual host(httpd-vhosts.conf), in by doing this
NameVirtualHost *:80 <VirtualHost *:80> ServerName dev.ems.com DocumentRoot "E:\xampp\htdocs\ems" </VirtualHost>
That one is working fine after i type
I would like same functionality to become done from ".htaccess". help me.
The context for
VirtualHost needs to be
server config. Begin to see the Apache paperwork.
Which means that the directive might be utilized in the server configuration files (e.g., httpd.conf), although not within any or containers. It's not permitted in .htaccess files whatsoever.
It appear to become impossible, result in .htaccess can be used once you host is resolved...
I am talking about you type http://host.title/, apache finds the destination and uses .htaccess file with a procedures as needed...