Welcome Guest, Not a member yet? Register   Sign In
Removing .php extension gives 404
#5

After spending several hours, going through the entire CodeIgniter scripts, I found a hack. Not ideal, but works fine for me.

Under system/URI.php, within the public function __construct(), based on current full URL, I switch between $protocol = 'REQUEST_URI' and $protocol = 'QUERY_STRING', when the URL includes and does not include the name of the application's folder, respectively.
Reply


Messages In This Thread
Removing .php extension gives 404 - by sj2022 - 01-07-2022, 05:51 AM
RE: Removing .php extension gives 404 - by sj2022 - 01-08-2022, 10:57 AM
RE: Removing .php extension gives 404 - by sj2022 - 01-10-2022, 01:31 AM
RE: Removing .php extension gives 404 - by sj2022 - 01-10-2022, 07:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB