.htaccess 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. AddDefaultCharset UTF-8
  2. # Do not remove this line, otherwise mod_rewrite rules will stop working
  3. RewriteEngine On
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteRule ^([^/]+)/?$ index.php?p=$1 [L,QSA]
  7. ErrorDocument 404 https://tankernn.eu/?p=404
  8. ## EXPIRES CACHING ##
  9. <IfModule mod_expires.c>
  10. ExpiresActive On
  11. ExpiresByType image/jpg "access plus 1 week"
  12. ExpiresByType image/jpeg "access plus 1 week"
  13. ExpiresByType image/gif "access plus 1 week"
  14. ExpiresByType image/png "access plus 1 week"
  15. ExpiresByType text/css "access plus 1 week"
  16. ExpiresByType application/pdf "access plus 1 week"
  17. ExpiresByType text/x-javascript "access plus 1 week"
  18. ExpiresByType application/x-shockwave-flash "access plus 1 week"
  19. ExpiresByType image/x-icon "access plus 1 week"
  20. ExpiresByType text/javascript "access plus 1 week"
  21. ExpiresDefault "access"
  22. </IfModule>
  23. ## EXPIRES CACHING ##
  24. <IfModule mod_deflate.c>
  25. # Compress HTML, CSS, JavaScript, Text, XML and fonts
  26. AddOutputFilterByType DEFLATE application/javascript
  27. AddOutputFilterByType DEFLATE application/rss+xml
  28. AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
  29. AddOutputFilterByType DEFLATE application/x-font
  30. AddOutputFilterByType DEFLATE application/x-font-opentype
  31. AddOutputFilterByType DEFLATE application/x-font-otf
  32. AddOutputFilterByType DEFLATE application/x-font-truetype
  33. AddOutputFilterByType DEFLATE application/x-font-ttf
  34. AddOutputFilterByType DEFLATE application/x-javascript
  35. AddOutputFilterByType DEFLATE application/xhtml+xml
  36. AddOutputFilterByType DEFLATE application/xml
  37. AddOutputFilterByType DEFLATE font/opentype
  38. AddOutputFilterByType DEFLATE font/otf
  39. AddOutputFilterByType DEFLATE font/ttf
  40. AddOutputFilterByType DEFLATE image/svg+xml
  41. AddOutputFilterByType DEFLATE image/x-icon
  42. AddOutputFilterByType DEFLATE text/css
  43. AddOutputFilterByType DEFLATE text/html
  44. AddOutputFilterByType DEFLATE text/javascript
  45. AddOutputFilterByType DEFLATE text/plain
  46. AddOutputFilterByType DEFLATE text/xml
  47. # Remove browser bugs (only needed for really old browsers)
  48. BrowserMatch ^Mozilla/4 gzip-only-text/html
  49. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  50. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  51. Header append Vary User-Agent
  52. </IfModule>