Welcome Guest, Not a member yet? Register   Sign In
Remove index.php? from URL with question mark | Codeigniter
#4

please use default .htaccess from CI4.

replace this line:
RewriteRule ^([\s\S]*)$ index.php/$1 [L,NC,QSA]

with this line:
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

Then,set:
App -> Config -> App.php :

public $indexPage = ''; //'index.php';

This is working for me.
Reply


Messages In This Thread
RE: Remove index.php? from URL with question mark | Codeigniter - by ikesela - 07-17-2021, 05:36 PM



Theme © iAndrew 2016 - Forum software by © MyBB