CodeIgniter Forums
Codeigniter Enable Query Strings Not Working - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: Codeigniter Enable Query Strings Not Working (/showthread.php?tid=62237)



Codeigniter Enable Query Strings Not Working - wolfgang1983 - 06-23-2015

I am trying to do every thing codeigniter way with query string now

But I have a question: When I use Enable Query Strings True on my config.php file it throws error.


PHP Code:
Unable to determine what should be displayeddefault route has not been specified in the routing file

But I have set my routes


PHP Code:
$config['uri_protocol']    'REQUEST_URI';

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

$route['default_controller'] = 'login';
$route['404_override'] = '';
$route['translate_uri_dashes'] = FALSE;
$route['common/dashboard'] = "common/dashboard";
$route['common/logout'] = "common/logout 

I am not sure why? My htaccess is here.


Code:
Options +FollowSymLinks
Options -Indexes
<FilesMatch "(?i)((\.tpl|\.ini|\.log|(?<!robots)\.txt))">
    Order deny,allow
    Deny from all
</FilesMatch>
DirectoryIndex index.php
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]

Any Suggestions.