exetermathclub/emcc-server/master/.htaccess - Htaccess File

exetermathclub/emcc-server/master/.htaccess

DirectoryIndex index.shtml index.html
# Insert filter
SetOutputFilter DEFLATE

# Netscape 4.x has some problems...
BrowserMatch ^Mozilla/4 gzip-only-text/html

# Netscape 4.06-4.08 have some more problems
BrowserMatch ^Mozilla/4.0[678] no-gzip

# MSIE masquerades as Netscape, but it is fine
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Don't compress images
SetEnvIfNoCase Request_URI 
.(?:gif|jpe?g|png)$ no-gzip dont-vary

ExpiresActive On
ExpiresDefault "access plus 1 month"

AddDefaultCharset utf-8

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteBase /~mathclub/
RewriteRule ^ https://csserver.exeter.edu%{REQUEST_URI} [QSA]

On Github License

Files

Download PDF of Htaccess file
DEFLATE, HTTPS, no-gzip, REQUEST_URI

Comments

Apache