Question : Error: The URI you submitted has disallowed characters. Using Apache and Code Igniter

I am running Windows. Using Apache and PHP (5+) I have a website running under the Code Igniter Framework. I transferred the site from the server to my localhost directory. The main index page works fine. But because we were using the clean rewrite of URL's I cannot access the other pages which are obviously classes in the controller which have functions etc.

I do have a .htaccess file which has the following:
----------------------------------------------------
DirectoryIndex index.php index.html
Options +FollowSymLinks
RewriteEngine on
----------------------------------------------------
Options All -Indexes

The setting under config is correct:

$config['enable_query_strings'] = FALSE;

Answer : Error: The URI you submitted has disallowed characters. Using Apache and Code Igniter

I found the solution. The version of Code Igniter was a little older so I simply replaced the URI.php file in the library folder (core). You can alternatively follow this solution which changes 2 lines http://davidmichaelthompson.com/2009/09/03/fixed-the-uri-you-submitted-has-disallowed-characters-error-codeigniter/

I was spending a while assuming it was a .htaccess problem or a configuration problem in CI.
Random Solutions  
 
programming4us programming4us