# BEGIN GZIP
AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript
# END GZIP
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^qtpass.org$ [NC]
RewriteRule ^(.*)$ https://qtpass.org/$1 [L,R=301]
ErrorDocument 404 /404.html
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 1 month"
## EXPIRES CACHING ##
Redirect 301 /features /#features
Redirect 301 /installation /#installation
Redirect 301 /linux /#linux
Redirect 301 /windows /#windows
Redirect 301 /osx /#osx
Redirect 301 /macos /#osx
Redirect 301 /dependencies /#dependencies
Redirect 301 /security-considerations /#security-considerations
Redirect 301 /planned-features /#planned-features
Redirect 301 /known-issues /#known-issues
Redirect 301 /faq /#faq
Redirect 301 /cant-save-a-password /#cant-save-a-password
Redirect 301 /i-have-an-issue-with-gnome-keyring /#i-have-an-issue-with-gnome-keyring
Redirect 301 /can-i-import-from-keepass-lastpass-or-x /#can-i-import-from-keepass-lastpass-or-x
Redirect 301 /current-FAQ /#current-FAQ
Redirect 301 /where-can-i-ask-for-help /#where-can-i-ask-for-help
Redirect 301 /changelogs /#changelogs