Tuesday, February 1, 2011

Write .htaccess file in CI

In order a request to directed correctly without need to use index.php/class/function, use these .htaccess file and put in in your CI root directory. Assumption, your CIroot directory is C:\xampp\htdocs\ci

RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt|user_guide/*/*)
RewriteRule ^(.*)$ /ci/index.php/$1 [L]

No comments:

Post a Comment