Problem when running my app with a different base URL |
Hello everyone,
I have just started to learn CodeIgniter 4 and I have gone through the online documentation. I am using the local development server that comes with CodeIgniter 4 to host my web app locally. I have also set the variable CI_ENVIRONEMENT in my .env file to development. Following the documentation, I have set my base URL to "http://tutorial.ci/" in the file app/Config/App.php and also within the .env file, the baseURL has been set as app.baseURL="http://tutorial.ci/". Note that I have uncommented the app.baseURL line. So my first question is, after launching the server, why does the server is still starting on http://localhost:8080 despite modifying the baseURL? And my second question is, why can't I access the web app in my browser via the link "http://tutorial.ci/"?
Kindly find as attachement of the .env and app/Config/App.php files. I will be very grateful if someone could help me to solve this issue as I am a complete novice to CodeIgniter. Thanks in advance Best Regards, Umar |
Messages In This Thread |
Problem when running my app with a different base URL - by Umar - 03-22-2020, 01:57 AM
RE: Problem when running my app with a different base URL - by InsiteFX - 03-22-2020, 08:06 AM
RE: Problem when running my app with a different base URL - by Umar - 03-28-2020, 10:00 AM
|