# 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 WebP Express
# The directives (lines) between "BEGIN WebP Express" and "END WebP Express" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
# END WebP Express

#Begin Really Simple Security
<Files *.php>
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>
#End Really Simple Security
