amitamb/jekyll-test1/gh-pages/.htaccess - Htaccess File

amitamb/jekyll-test1/gh-pages/.htaccess

<ifModule mod_headers.c>
    Header set Connection keep-alive
</ifModule>

# -- Password Protection --
# AuthName "Restricted Area"
# AuthType Basic
# AuthUserFile /Applications/MAMP/htdocs/.htpasswd
# AuthGroupFile /dev/null
# require valid-user

# -- Error Docs --
ErrorDocument 404 /404/

# -- 301 Redirects --
# Redirect 301 /oldlocation/oldlocation/ /newlocation/
# Redirect 301 /oldlocation/ /

# -- Browser Caching --
<IfModule mod_expires.c>
ExpiresActive On
# Default
    ExpiresDefault "access plus 1 month"
# HTML
    ExpiresByType text/html "access plus 10 minutes"
# CSS
    ExpiresByType text/css "access plus 10 years"
# Webfonts
    ExpiresByType application/x-font-ttf "access plus 1 month"
    ExpiresByType font/opentype "access plus 1 month"
    ExpiresByType application/x-font-woff "access plus 1 month"
    ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
#JavaScript
    ExpiresByType text/javascript "access plus 10 years"
    ExpiresByType application/javascript "access plus 10 years"
    ExpiresByType application/x-javascript "access plus 10 years"
# Images
    ExpiresByType image/gif "access plus 10 years"
    ExpiresByType image/jpeg "access plus 10 years"
    ExpiresByType image/jpg "access plus 10 years"
    ExpiresByType image/png "access plus 10 years"
    ExpiresByType image/x-icon "access plus 10 years"
    ExpiresByType image/svg+xml "access plus 10 years"
# Other
    ExpiresByType text/plain "access plus 1 months"
</IfModule>

# -- Compression --
SetOutputFilter DEFLATE

On Github License

Files

Download PDF of Htaccess file
DEFLATE

Comments

Apache