<IfModule mod_rewrite.c> RewriteEngine on # rewrite everything using the public dir RewriteBase /public # if nothing was called, use index.php RewriteRule ^(/)?$ index.php/$1 [L] # exclude directories from direct calling RewriteCond %{REQUEST_URI} ^/(fuel|cgi-bin|stats)/(.*)$ RewriteRule ^(.*)$ index.php/$1 [L] # redirect asset requests RewriteCond %{REQUEST_URI} ^/(assets)/(.*)$ RewriteRule ^(.*)$ $1 [L] # if all else fails, and file still does not exist, process through index.php RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
It looks like you're new here. If you want to get involved, click one of these buttons!