KaivoAnastetiks/SUMBE/master/public_html/.htaccess - Htaccess File

KaivoAnastetiks/SUMBE/master/public_html/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On

    # Checks if the request is https and if not it reloads in https.
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    # Sends the url string to the index page.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?url=$1 [PT,L,QSA]

    # Blocks access to directories and redirect to a 404 error.
    Options -Indexes
    ErrorDocument 403 /index.php?url=404

</IfModule>

On Github License

Files

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

Comments

Apache