Thanks for the support!
First I need to clarify that I am using Hostgator vps hosting.
1 - I created a directory at the root of my server (
/home/xxxnsp) and put the CodeIgniter files in the ci4 directory, as indicated by the blue arrow in the attached image or image below;
2 - I created a folder in the public folder of the server (
public_html/test), this folder is a subdomain, and placed the public CodeIgniter files in that location, as indicated by the red arrow in the image;
3 - I configured the
index.php, located in the
public_html/test directory, according to the code below:
PHP Code:
$pathsPath = FCPATH . '../../ci4/app/Config/Paths.php';
4 - I configured the
App.php file, located in the root
app/Config/App.php directory, according to the code below:
PHP Code:
public $baseURL = 'https://test.inspex.com.br/';
5 - I didn't touch any other file or line of code.
Note: I'm still working on this project and just created this subdomain to be able to do the tests in a real server environment. After finishing the tests, I will delete this subdomain and put the public CodeIgniter files in the folder public_html.