Welcome Guest, Not a member yet? Register   Sign In
Problem when running my app with a different base URL

(This post was last modified: 03-22-2020, 02:49 AM by jreklund.)

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.  Smile
Thanks in advance

Best Regards,

Attached Files
.php   App.php (Size: 9.55 KB / Downloads: 0)
.txt   env file.txt (Size: 3.26 KB / Downloads: 1)

Messages In This Thread
Problem when running my app with a different base URL - by Umar - 03-22-2020, 01:57 AM

Theme © iAndrew 2016 - Forum software by © MyBB