# Security Settings
Options -Indexes

# Redirect all requests to the web directory
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    
    # If the request is not for the web directory
    RewriteCond %{REQUEST_URI} !^/web/
    
    # Redirect to web directory
    RewriteRule ^(.*)$ web/$1 [L]
</IfModule>

# Set default index file
DirectoryIndex index.php index.html
