.htaccess 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Extra Security Headers
  2. <IfModule mod_headers.c>
  3. Header set X-XSS-Protection "1; mode=block"
  4. Header always append X-Frame-Options SAMEORIGIN
  5. Header set X-Content-Type-Options nosniff
  6. # DISABLE CACHING
  7. # Header set Cache-Control "no-cache, no-store, must-revalidate"
  8. # Header set Pragma "no-cache"
  9. # Header set Expires 0
  10. </IfModule>
  11. <IfModule mod_rewrite.c>
  12. RewriteEngine On
  13. RewriteBase /
  14. RewriteRule ^index\.php$ - [L]
  15. RewriteCond %{REQUEST_FILENAME} !-f
  16. RewriteCond %{REQUEST_FILENAME} !-d
  17. RewriteRule . /index.php [L]
  18. # Rewrite HTTP to HTTPS
  19. RewriteCond %{HTTPS} !=on
  20. RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R,L]
  21. </IfModule>
  22. ErrorDocument 404 /404.html
  23. # BEGIN EXPIRES
  24. <IfModule mod_expires.c>
  25. ExpiresActive On
  26. ExpiresByType text/plain "access plus 1 minute"
  27. ExpiresByType text/vtt "access plus 1 year"
  28. ExpiresByType text/css "access plus 1 year"
  29. ExpiresByType image/jpg "access plus 1 year"
  30. ExpiresByType image/jpeg "access plus 1 year"
  31. ExpiresByType image/gif "access plus 1 year"
  32. ExpiresByType image/png "access plus 1 year"
  33. ExpiresByType text/html "access plus 600 seconds"
  34. ExpiresDefault "access plus 1 year"
  35. </IfModule>
  36. # END EXPIRES