RewriteEngine On
#RewriteCond $1 !^(uploads|public|ckeditor|ckfinder|blog|robots\.txt)
RewriteBase /gst_accounts/
RewriteCond %{REQUEST_URI} ^system.*

RewriteRule ^(.*)$ /gst_accounts/index.php/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1 [L]