Welcome Guest, Not a member yet? Register   Sign In
Change localhost:8080 to custom domain CI4
#1

(This post was last modified: 11-27-2022, 12:52 AM by refs.)

Hi,

I'm quite new in CI4, but use CI3 for view years.

I saw a video on youtube where someone change app.php to set CI4 custom domain and remove index.php

here's the link
Code:
https://www.youtube.com/watch?v=yoKTE5J5T7g


this is how exactly i want CI4 work in my localhost (I'm using apache2)

but, since i saw documentation of CI4 where i can run

Code:
php spark serve


and my CI4 run when accesed from
Code:
localhost:8080


is there any way to change that
Code:
localhost:8080
to something like
Code:
http://localhost/mypCI4
so i can access my ci project with "php spark serve" but with my custom domain in localhost ?

im trying to add in .env something like
Code:
app.baseURL=http://localhost/mypCI4
but it's not working

Thanks in advance
Reply


Messages In This Thread
Change localhost:8080 to custom domain CI4 - by refs - 11-27-2022, 12:44 AM



Theme © iAndrew 2016 - Forum software by © MyBB