Welcome Guest, Not a member yet? Register   Sign In
set the "document root" to the public folder inside your project

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

Also on Windows you may need to add the server name to the Windows host file.


You can open it using notepad with administrator mode.

Example: ci4.dev
::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 )

Messages In This Thread
RE: set the &quot;document root&quot; to the public folder inside your project - by InsiteFX - 07-18-2017, 03:26 AM

Theme © iAndrew 2016 - Forum software by © MyBB