Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Enable Query Strings Not Working
#1

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.
There's only one rule - please don't tell anyone to go and read the manual.  Sometimes the manual just SUCKS!
Reply




Theme © iAndrew 2016 - Forum software by © MyBB