Routing and $_SERVER['SCRIPT_NAME'] removal |
Hi, I have a website built using CodeIgniter 3.1.9.
I have Apache configured with the following RewriteRule as recommended here https://www.codeigniter.com/userguide3/g...x-php-file so that the index.php part of a url is optional. Code: RewriteEngine On I noticed that the following url: www.example.com/index.phptest loads the same page as www.example.com/index.php/test. I had a look through the routing code in core/URI.php and saw that the following code was responsible: Code: ... I replaced this code with the following to fix the issue: Code: ... Additionally, I checked out a list of sites that use CodeIgniter and found the following with the same issue: **links redacted** |
Messages In This Thread |
Routing and $_SERVER['SCRIPT_NAME'] removal - by qwertyman - 03-20-2019, 03:48 AM
RE: Routing and $_SERVER['SCRIPT_NAME'] removal - by InsiteFX - 03-26-2019, 05:06 PM
|