resources/.htaccess
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# Don't show directory listings for URLs which map to a directory. Options -Indexes # Follow symbolic links in this directory. Options +FollowSymLinks # Unset ETags Header unset ETag FileETag None # Compress text files. <IfModule mod_deflate.c> SetOutputFilter DEFLATE # compress content with type html, text, js, and css AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/javascript application/x-javascript <IfModule mod_headers.c> # properly handle requests coming from behind proxies Header append Vary User-Agent </IfModule> </IfModule> # Properly handle old browsers that do not support compression <IfModule mod_deflate.c> BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html # Explicitly exclude binary files from compression just in case SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png|pdf|swf|ico|zip)$ no-gzip </IfModule> # Custom errors ErrorDocument 404 /404/index.html ErrorDocument 500 /500/index.html # Force simple error message for requests for non-existent favicon.ico. <Files favicon.ico> ErrorDocument 404 "The requested file favicon.ico was not found." </Files> # Set the default handler. DirectoryIndex index.html # Requires mod_expires to be enabled. <IfModule mod_expires.c> # Enable expirations. ExpiresActive On # Cache all files for 1 hour after access (A). ExpiresDefault A3600 </IfModule> # Various rewrite rules. <IfModule mod_rewrite.c> RewriteEngine on RewriteRule ^$ /home/index.html [L,QSA] </IfModule> |