How to access CI4 on live server |
Hi,
I installed CI4 on a live shared hosting in a subdirectory. I can access it by going to http://mysite/ci4/public but how can I access the default controller if I want to use http://mysite/ci4/ I already set the base url in App.php and the env file.
You have to map the document root to the public folder in your project. It looks like your document root is htdocs (for instance), and it should be htdocs/ci4/public
Hi,
I have the same problem. I understand that the base_url is the public path; for example, if your hosting public folder is httpdocs, is here when you upload the CI4 public folder (index.php, robots.txt, favicon.ico & .htaccess), and the rest of CI4 project one folder up.. I try, but doesn't work fine (09-22-2019, 02:49 AM)TamasD Wrote: This thread helped: https://forum.codeigniter.com/thread-74347.html Works perfect! Thank's |
Welcome Guest, Not a member yet? Register Sign In |