operat/WebSpy-Browser-Check/gh-pages/.htaccess
# ----------------------------------------
# REWRITE/REDIRECT
# ----------------------------------------
# FORCE TRAILING SLASH
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} /+[^.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</IfModule>
# ----------------------------------------
# SECURITY & PRIVACY
# ----------------------------------------
# PREVENT DIRECTORY BROWSING
Options All -Indexes -MultiViews
# SECURE HTACCESS FILE
<Files .htaccess>
order allow,deny
deny from all
</Files>
# DENY ACCESS TO HIDDEN FILES AND DIRECTORIES
RedirectMatch 404 /..*$
# DENY ACCESS TO BACKUP AND SOURCE FILES
<FilesMatch "(.(bak|config|dist|fla|inc|ini|log|psd|sh|sql|swp)|~)$">
Order allow,deny
Deny from all
Satisfy All
</FilesMatch>
# ----------------------------------------
# PERFORMANCE
# ----------------------------------------
# ENABLE GZIP (FILE COMPRESSION)
<ifmodule mod_deflate.c>
AddOutputFilterByType DEFLATE application/javascript application/json application/x-javascript text/css text/html text/javascript text/plain text/text text/xml
<FilesMatch ".(ttf|otf|eot|svg)$" >
SetOutputFilter DEFLATE
</FilesMatch>
</ifmodule>
# EXPIRES HEADERS (CACHE CONTROL)
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
ExpiresByType text/html "access plus 0 seconds"
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
ExpiresByType application/javascript "access plus 1 month"
ExpiresByType application/x-javascript "access plus 1 month"
ExpiresByType text/javascript "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/ogg "access plus 6 month"
ExpiresByType audio/ogg "access plus 6 month"
ExpiresByType video/mp4 "access plus 6 month"
ExpiresByType video/webm "access plus 6 month"
ExpiresByType application/x-font-ttf "access plus 6 month"
ExpiresByType application/x-font-woff "access plus 6 month"
ExpiresByType font/opentype "access plus 6 month"
ExpiresByType image/svg+xml "access plus 6 month"
</IfModule>
# DISABLE ETAGS
# For reference: http://developer.yahoo.com/performance/rules.html
FileETag None
# ----------------------------------------
# MISCELLANEOUS
# ----------------------------------------
# FOLLOW SYMBOLIC LINKS
Options +FollowSymlinks
# AUTOMATIC CHARSET FOR FILES
<FilesMatch ".(atom|css|csv|htm|html|js|json|php|rss|xml)$">
AddDefaultCharset utf-8
</FilesMatch>
# PREVENT MOBILE NETWORK PROVIDERS FROM MODIFYING YOUR SITE
# For reference, see https://github.com/cferdinandi/htaccess/
<IfModule mod_headers.c>
Header set Cache-Control "no-transform"
</IfModule>
# BETTER EXPERIENCE FOR IE
<FilesMatch ".(htm|html|php)$">
<IfModule mod_headers.c>
BrowserMatch MSIE ie
Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
</IfModule>
</FilesMatch>
# ----------------------------------------
# REFRENCE
# ----------------------------------------
#[http://htaccesscheatsheet.com/]
#[https://github.com/phanan/htaccess]
#[https://github.com/cferdinandi/htaccess/blob/master/.htaccess]
On Github License
Files