RewriteEngine on RewriteCond $1 !^(index\.php|assets) RewriteRule ^(.*)$ /gadmin/index.php/$1 [L]