Welcome Guest, Not a member yet? Register   Sign In
How to access CI4 on live server
#1

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.
Reply
#2

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
Reply
#3

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

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
Reply
#5

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

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

Works perfect!

Thank's
Reply




Theme © iAndrew 2016 - Forum software by © MyBB