This is the Virtual Host that I use on Windows 10 Pro using XAMPP and PHP 7.1.7.
PHP Code:
# Testing CI 4.0 Dev
<VirtualHost *:80>
DocumentRoot "\xampp\htdocs\ci4\public_html"
ServerName ci4.dev
<Directory "\xampp\htdocs\ci4\public_html">
Order allow,deny
Allow from all
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
Also on Windows you may need to add the server name to the Windows host file.
c:\Windows\System32\drivers\etc\hosts
You can open it using notepad with administrator mode.
Example:
127.0.0.1 ci4.dev
or
::1 ci4.dev
This works fine for me and I use it all the time.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )