CodeIgniter Forums
Accessing default controller - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Accessing default controller (/thread-73414.html)



Accessing default controller - TamasD - 04-22-2019

hi,

Just installed beta2.

For some reason I can't access the default controller by just going to http://localhost:8080/mysite/

only by going to http://localhost:8080/mysite/public

I have changed the baseUrl to


PHP Code:
public $baseURL 'http://localhost:8080/mysite/'

also in the env file.

Thanks


RE: Accessing default controller - ciadmin - 04-22-2019

It sounds like you are pointing your document root to the folder above your project, eg "htdocs".
The doucment root should point to your project's public folder, eg "htdocs/myproject/public".
You would then reference your site as "localhost:8080".
See https://codeigniter4.github.io/CodeIgniter4/installation/running.html


RE: Accessing default controller - TamasD - 04-22-2019

Well, CI is installed into http://localhost:8080/mysite/

I didn't copy the CI files directly into the htdocs folder because I have a bunch of other projects there.


RE: Accessing default controller - InsiteFX - 04-22-2019

htdocs
-- project_name
---- app
---- system
---- public
------ index.php
------ assets