# BloodConnect - Apache Configuration
# Place this in public_html/ if your app lives in a subdirectory

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /

    # Redirect all traffic to the WSGI app
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /passenger_wsgi.py/$1 [QSA,L]
</IfModule>

# Allow access to static files directly
<IfModule mod_alias.c>
    Alias /static /home/username/blood-donation-app/static
</IfModule>
