#deny from 102.215.58.31

#<IfModule mod_rewrite.c>
 #   RewriteEngine On
  #  RewriteCond %{HTTPS} off
   # RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    #RewriteCond %{REQUEST_URI} ^/$
    #RewriteRule ^$ /login [L,R=301]
#</IfModule>

#RewriteEngine On
#RewriteCond %{HTTP_HOST} ^siga\.copmoz\.ac\.mz$ [NC]
#RewriteRule ^$ https://siga.copmoz.ac.mz/login [L,R=301]


<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # RewriteEngine On
    RewriteCond %{HTTP_HOST} ^siga\.copmoz\.ac\.mz$ [NC]
    RewriteRule ^$ https://siga.copmoz.ac.mz/login [L,R=301]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Exclude /chat route from redirection
    RewriteCond %{REQUEST_URI} !^/chat [NC]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>
