The URI you submitted has disallowed characters |
[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...es/المعاقب 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~%.:_\-';
[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 !!
[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.
[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))
[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
[eluser]Php Coder[/eluser]
$config['permitted_uri_chars'] .= 'لإ-لآ-أ-لآ-ض-ص-ث-ق-ف-غ-ع-ه-خ-ح-ج-د-ط-ك-م-ن-ت-ا-ل-ب-ي-س-ش-ئ-ء-ؤ-ر-ل-ا-ى-ة-و-ز-ظ-إ'; حط دي بعد $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; في ملف /application/config/config.php |
Welcome Guest, Not a member yet? Register Sign In |