In CodeIgniter 4, there are only 2 variables you need to change
xxxxxxxxxx
//Go to app/Config/App.php, then find and change value
public $indexPage = ''; //default value is 'index.html'
//Next go to .env file at the root folder, uncomment and change value
app.baseURL = 'http://localhost/your_project_name/'
//default value is 'http://localhost:8080'
Only this if you're on development mode and not your priority yet and just wants to see the results of your site content. Hope this helps.