RewriteEngine On
 
RewriteRule ^admin/ bootstrap.php?app=Backend [QSA,L]
 
RewriteCond %{REQUEST_FILENAME} !-f
 
RewriteRule ^(.*)$ bootstrap.php?app=Frontend [QSA,L]