# Place this at /home/lsinteriorstudio/public_html/.htaccess
# (only if your document root is NOT already pointing to public_html/public/)

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Redirect all requests to the public/ folder
    RewriteCond %{REQUEST_URI} !^/?public/
    RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

# Block direct access to sensitive files
<FilesMatch "\.(env|env\.production|gitignore|gitattributes|md)$">
    Require all denied
</FilesMatch>
