• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access CI4 on live server


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

So I should set the baseurl to http://mysite/ci4/public ?


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

This thread helped: https://forum.codeigniter.com/thread-74347.html

(09-22-2019, 02:49 AM)TamasD Wrote: This thread helped: https://forum.codeigniter.com/thread-74347.html

Works perfect!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.