The URI you submitted has disallowed characters. |
[eluser]singlepoint[/eluser]
My uri is http://localhost/ci/index.php/blog and there is nothing which should be disallowed. Any ideas?
[eluser]pistolPete[/eluser]
Please post your config setting permitted_uri_chars: Code: //standard setting Try a different URI PROTOCOL. Do you use a .htaccess file?
[eluser]Unknown[/eluser]
i'm having the same problem my uri is Code: http://localhost/CI/index.php/site i also tried different permitted uri expressions a follows $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // Did not work $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-'; // Did not work if i manually add the controller name in the end then it works $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-site'; // DID WORK everything else is default i haven't touched anything
[eluser]singlepoint[/eluser]
Hey No, I am not using a .htaccess file similarly the other settings are as follows. $config['base_url'] = "http://localhost/ci/"; $config['index_page'] = "index.php"; $config['uri_protocol'] = "AUTO"; $config['url_suffix'] = ""; $config['language'] = "english"; $config['charset'] = "UTF-8"; $config['enable_hooks'] = FALSE; $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-'; It is the simplest configuration, perhaps the first step for codeigniter. I am following the tutorial by Derek Jones placed on codeigniter website. There is no character in the uri which should not be permitted.
[eluser]Phreax[/eluser]
[quote author="hris" date="1251108525"]i'm having the same problem my uri is Code: http://localhost/CI/index.php/site i also tried different permitted uri expressions a follows $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-'; // Did not work $config['permitted_uri_chars'] = 'a-z 0-9~%.:_-'; // Did not work if i manually add the controller name in the end then it works $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-site'; // DID WORK everything else is default i haven't touched anything[/quote] I have the same problem - the same solution works Code: $config['permitted_uri_chars'] = 'a-z 0-9~%.:_\-blog'; // DID WORK I dont want to have to re-write this line for every controller - is there an easier option? EDIT: Code: $config['permitted_uri_chars'] = ''; seems to work for localhost - I wonder if the default will work ok online? I will continue to use this to develop locally for the time being.
[eluser]Phreax[/eluser]
Thank you - I tried this and it worked. Many Thanks, Phreax
|
Welcome Guest, Not a member yet? Register Sign In |