Options -Indexes

# Block direct access to folder root
RewriteEngine On

# If request is exactly the directory root, block it
RewriteCond %{REQUEST_URI} ^/shopline/snatchit-integration/?$ [NC]
RewriteRule ^ - [R=403,L]

# Allow all real files to work normally
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

# Optional: block hidden files (.env, .git, etc.)
<FilesMatch "^\.">
    Order allow,deny
    Deny from all
</FilesMatch>