Fixed: The URI you submitted has disallowed characters.

In codeigniter 1.7.x version if you find “The URI you submitted has disallowed characters.” message then you can solve it easily by following the below steps.

Follow the following ways to fix this error. (assuming codeigniter 1.7.x)

1) in codeigiter system/libraries open URI.php line 189 you?ll find

if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))

change this code by

if ( ! preg_match("|^[".($this->config->item('permitted_uri_chars'))."]+$|i", rawurlencode($str)))

2. Now another changes in your system/application/config/config.php file. Go to the line 126

$config['permitted_uri_chars'] = 'a-z 0-9~%.:_-';

change this code by

$config['permitted_uri_chars'] = 'a-z 0-9~%\.\:_\-';

After changes the code, save the file and refresh your browser.


  • Email, SSL
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Disable MySql Strict Mode di cPanel/WHM

sebelum melakukan sesuatu alangkah baiknya membackup mysql configrasi nya terlebih dahulu: cp...

Cara Reset Password Adminitrator Joomla

Normally, you can add, edit and delete users and passwords from the back-end User Manager. To do...

Replace a failed harddisk in Linux software RAID

Ini adalah contoh anda memiliki 2 hard disk, /dev/sda dan /dev/sdb, dengan partisi /dev/sda1 dan...

Fixed: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference

Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a reference, value given...

Exim Error: Ratelimit database not available

If you find any of the following errors below in your /var/log/exim_mainlog log file. The fix...