<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /schoolerp RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /schoolerp/index.php/$1 [L] </IfModule> that's what i updated .htaccces file to. still getting error 404