# BEGIN BW Lock Files
<IfModule mod_rewrite.c>
RewriteEngine On

# Allow image files to be served directly
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_URI} !\.(jpg|jpeg|png|gif|webp|svg|ico|bmp)$ [NC]

# Rewrite non-image files through WordPress
RewriteRule ^(.*)$ /index.php?bw_serve_file=$1 [L,QSA]
</IfModule>
# END BW Lock Files
#Begin Really Simple Security
<Files *.php>
Require all denied
</Files>
#End Really Simple Security
