Welcome Guest, Not a member yet? Register   Sign In
Codeigniter 4 installation and img directory
#1

I have installed Codeigniter 4 in the xampp   c:\xampp\htdocs\

I have added a virtual host in the httpd-vhosts  under C:\xampp\apache\conf\extra

I have also added  127.0.0.1 kpi.local in the etc/host
Code:
<VirtualHost *:80>
    DocumentRoot "C:\xampp\htdocs\kpi\public"
    ServerName kpi.local
    <Directory "C:\xampp\htdocs\kpi\public">
        Order allow,deny
        Allow from all
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>


My codeigniter4 project name is kpi. everything is working fine and my project is running absolutely fine as http://kpi.local

but i have img folder in my public directory and base url in config is defined as http://kpi.local but when i check the html source code it is shown as http://kpi.local/public/img/logo.png. but unfortunately logo.png does not appear in the page and img directory doesn't seems to be accessible to my project and when i click on the above link it says 404 file not found.

Kindly help me how can allow images to be perfectly displayed in my project.

Thanks
Reply


Messages In This Thread
Codeigniter 4 installation and img directory - by itsrahulk - 04-12-2020, 07:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB