RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
RewriteBase /admin/
RewriteCond %{REQUEST_FILENAME} admin/ [NC]
RewriteCond %{REQUEST_FILENAME} !/scaffold/ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]