I am using CI_VERSION 3.0.0 and PHP Version 7.1.2. The site works fine on the server but when it is running on localhost it shows error. The URI you submitted has disallowed characters. I try both the solution
After doing changes it shows 404 error.