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

    RewriteEngine On

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

    # Redirect Trailing Slashes If Not A Folder...
    RewriteRule ^(.*)$ public/$1 [L]
    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ server.php

    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.canvascollege.edu.np/$1 [R,L]

</IfModule>
RewriteCond %{HTTP_HOST} ^canvascollege\.edu\.np$ [OR]
RewriteCond %{HTTP_HOST} ^www\.canvascollege\.edu\.np$
RewriteRule ^/?$ "https\:\/\/www\.canvascollege\.edu\.np\/" [R=301,L]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “alt-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddHandler application/x-httpd-alt-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
