# Place at the project root if the site is its own vhost
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
# route / to public list
RewriteRule ^$ public/index.php [L]
# admin routes pass-through
RewriteRule ^admin/(.*)$ admin/$1 [L]
# public single posts by slug
RewriteRule ^blog/([A-Za-z0-9\-]+)/?$ public/index.php?slug=$1 [L,QSA]
</IfModule>
