CodeIgniter4 framework-based site page needs to browse using the public by default.
If you want to remove that public from the URL & also if you want to remove index.php from URL, do the following things:
Step 1:
Copy public folder index.php & .htaccess to the root folder
Step 2:
Then in the root index.php (that was just copied), change the modification:
$pathsConfig = FCPATH . ‘../app/Config/Paths.php’;
To
$pathsConfig = FCPATH . ‘app/Config/Paths.php’;
Step 3:
Then in the app/Config/App.php,
find
public $baseURL = ‘https://arzerin.com/public/’;
to
public $baseURL = ‘https://arzerin.com/’;
————————
find
public $indexPage = ‘index.php’;
To
public $indexPage = ”;
—
WoW, you are done.
For Quick Learn Watch the Video:
There are 0 comments