RewriteEngine On

# Allow demo folder directly
RewriteRule ^demo(/.*)?$ - [L]