stefanzweifel/user-agent-analyzer/master/public/.htaccess - Htaccess File

stefanzweifel/user-agent-analyzer/master/public/.htaccess

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

    RewriteEngine On

    # Fix 10x redirect on uberspace
    RewriteBase /

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

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

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

<IfModule mod_rewrite.c>
    RewriteEngine on

    RewriteCond %{SERVER_PORT} ^80$

    # Redirect to HTTPS verison of this site
    RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
HTTPS, REQUEST_FILENAME, REQUEST_URI, SERVER_NAME, SERVER_PORT

Comments

Apache