![]() |
The URI you submitted has disallowed characters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: The URI you submitted has disallowed characters (/showthread.php?tid=19930) |
The URI you submitted has disallowed characters - El Forum - 06-23-2009 [eluser]Brain Coder[/eluser] hello i have make an page controller and i can generate the pages with tinymce the problem is when the page name is arabic like this http://127.0.0.1/smylat/smylat/index.php/smylat/pages/المعاقب showing error The URI you submitted has disallowed characters is there any way to make the uri allowing the arabic characters ? also im using the default $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; The URI you submitted has disallowed characters - El Forum - 06-23-2009 [eluser]xwero[/eluser] can't you transliterate the pagename? The URI you submitted has disallowed characters - El Forum - 06-23-2009 [eluser]Brain Coder[/eluser] [quote author="xwero" date="1245771623"]can't you transliterate the pagename?[/quote] can you explain how to do that? ,,, the point is when some one need a page like this contact us => in arabic "الاتصال بنا " i need the url showing the page in arabic characters because its good in search engine !! The URI you submitted has disallowed characters - El Forum - 06-23-2009 [eluser]TheFuzzy0ne[/eluser] It's also possible to configure your allowed chars on-the-fly. You can check the URI for a certain pattern, and if condition is met, you can change the allowed URI chars accordingly. The URI you submitted has disallowed characters - El Forum - 06-29-2009 [eluser]Ibrahim Mohamed Abotaleb[/eluser] I have tried to solve this problem to use arabic characters in url and i have reach to convert allowed characters variable in config to disallowed characters like Code: $config['permitted_uri_chars'] = '~`!#$%^&()[]{};\':",<>'; from Code: if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str)) Code: if ( preg_match("|^.[".preg_quote($this->config->item('permitted_uri_chars'))."]|", $str)) The URI you submitted has disallowed characters - El Forum - 06-30-2009 [eluser]Brain Coder[/eluser] [quote author="Ibrahim Mohamed Abotaleb" date="1246290061"]I have tried to solve this problem to use arabic characters in url and i have reach to convert allowed characters variable in config to disallowed characters like Code: $config['permitted_uri_chars'] = '~`!#$%^&()[]{};\':",<>'; from Code: if ( ! preg_match("|^[".preg_quote($this->config->item('permitted_uri_chars'))."]+$|i", $str)) Code: if ( preg_match("|^.[".preg_quote($this->config->item('permitted_uri_chars'))."]|", $str)) its work thank you ![]() The URI you submitted has disallowed characters - El Forum - 07-21-2012 [eluser]Php Coder[/eluser] $config['permitted_uri_chars'] .= 'لإ-لآ-أ-لآ-ض-ص-ث-ق-ف-غ-ع-ه-خ-ح-ج-د-ط-ك-م-ن-ت-ا-ل-ب-ي-س-ش-ئ-ء-ؤ-ر-ل-ا-ى-ة-و-ز-ظ-إ'; حط دي بعد $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; في ملف /application/config/config.php |