denisdeejay/packages/master/web/.htaccess - Htaccess File

denisdeejay/packages/master/web/.htaccess

DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On

    RewriteCond %{HTTPS} off
    RewriteCond %{REMOTE_ADDR} !=127.0.0.1
    RewriteCond %{REMOTE_ADDR} !=::1
    RewriteCond %{REMOTE_ADDR} !=fe80::1
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [QSA,L]

    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^index.php(/(.*)|$) %{CONTEXT_PREFIX}/$2 [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f
    RewriteRule .? - [L]

    RewriteCond %{REQUEST_URI}::$1 ^(/.+)(.+)::2$
    RewriteRule ^(.*) - [E=BASE:%1]
    RewriteRule .? %{ENV:BASE}index.php [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
CONTEXT_PREFIX, ENV, HTTP_HOST, HTTPS, REDIRECT_STATUS, REMOTE_ADDR, REQUEST_FILENAME, REQUEST_URI

Comments

Apache