mousems/NTUvote102-2/master/.htaccess - Htaccess File

mousems/NTUvote102-2/master/.htaccess

RewriteEngine On
RewriteBase /
Options -Indexes 
#if the request is not secure
RewriteCond %{HTTPS} off
#redirect to the secure version
RewriteCond %{SERVER_PORT} !^443
RewriteRule (.*) https://%{HTTP_HOST}/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} -s [OR]
        RewriteCond %{REQUEST_FILENAME} -l [OR]
            RewriteCond %{REQUEST_FILENAME} -d
                RewriteRule ^.*$ - [NC,L]
                    RewriteRule ^.*$ index.php [NC,L]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, HTTPS, REQUEST_FILENAME, SERVER_PORT

Comments

Apache