Welcome Guest, Not a member yet? Register   Sign In
CI4 Redirect points back to the Default Controller only

(This post was last modified: 01-11-2022, 02:27 AM by algates. Edit Reason: Include Codes as PHP )

I have a CI4 Project which works well on Windows XAMPP. But, after I upload the same project to Ubuntu, the redirect only loads the Default Controller Page.

I altered the following setting on /app/Config/Routes.php

Before Change:
PHP Code:

After Change:
PHP Code:

Set of Routes:
PHP Code:

The Default Controller loads with no issues. But, when I type in the URL to access the other functions (runnerDBData, runnerCSVData, runnerJSONData) under the Controller Module, all points to the DefaultController / DefaultMethod settings only. I have read a lot of articles and modified the .htaccess, set the correct baseurl, enabled apache2 modrewrite, but somehow nothing seems to work the trick for me.

Let me know if you need any further info - Any help would be highly appreciated!!!

See https://codeigniter4.github.io/userguide...page-loads

(This post was last modified: 01-11-2022, 02:29 AM by algates. Edit Reason: Change Text Font )

Based on the link provided, I tried all the following options - Still no luck ...
PHP Code:
public $indexPage '';

$indexPage 'index.php';

$indexPage 'index.php?'

I have set the following Base URL - PHPCI is my Project / Root Folder Name:
PHP Code:
public $baseURL 'http://[::1]/PHPCI/'

Also, for uriProtocol - I have tried all the 3 options as below, still no luck.
PHP Code:
public $uriProtocol 'REQUEST_URI';

$uriProtocol 'QUERY_STRING';

$uriProtocol 'PATH_INFO'

Theme © iAndrew 2016 - Forum software by © MyBB