follow below stpes to add vertual host in xammp:
- Go to
C:\Windows\System32\drivers\etc
openhosts
file, in there add new line write: 127.0.0.1 domain.test - Go to
C:\Windows\System32\drivers\etc
openhttpd-vhosts.conf
file, in last line add those code and modify it according to your domain
<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\<path_to_run_folder>"
ServerName <domain_name>
<Directory "C:\xampp\htdocs\<path_to_run_folder>">
options All
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
after this restart xampp server and you good to go 😊