This is what my .htaccess
looks like. The .htaccess
is sitting in /www/scripts
directory which is the parent of codeigniter\'s s
Just toss the following code into your .htaccess file
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Source: http://codeigniter.com/user_guide/general/urls.html
here is the solution simply drop in root.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L]
use this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /folder/index.php/$1 [L]
CodeIgniter User Guide on URLs