Using str_replace replaces all occurences of the $base_url when parsing
the request URI.
This error is most apparent when $base_url is set to '/', where all
slashes in the URL are removed, and later matches on $location with
anything containing a slash will fail, falling back to the default case.
Using str_replace replaces all occurences of the $base_url when parsing the request URI. This error is most apparent when $base_url is set to '/', where all slashes in the URL are removed, and later matches on $location with anything containing a slash will fail, falling back to the default case.