danromano/summer-camp/master/public/.htaccess - Htaccess File

danromano/summer-camp/master/public/.htaccess

<IfModule mod_rewrite.c>

#BEGIN:FORCE HTTPS
RewriteCond %{HTTP_HOST} ^reg.camp-koala.com$
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME} [L,R]
#END:FORCE HTTPS

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

    RewriteEngine On

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

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

On Github License

Files

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

Comments

Apache