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.


Was this answer helpful?

 Print this Article

Also Read

Virtuozzo : RTNETLINK: Operation Not Supported

Here is a new bug which I faced on virtuozzo 4 and 4.6 for Centos 6 VPS.   VPS fails to...

Disable MySql Strict Mode di cPanel/WHM

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

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...

Routing all mails to a smarthost with SMTP Authentication

Pergi ke halaman "Exim Configuration Editor" di WHM. Pilih "Advanced Editor". Add a...

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...

Powered by WHMCompleteSolution