My personal website built with Hugo https://mehl.mx
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.htaccess 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. RewriteEngine On
  2. RewriteBase /
  3. # Redirect old links
  4. RewriteRule ^(en|de)/(.*)$ /$2 [R=301,L]
  5. RewriteRule ^(en|de)/?$ / [R=301,L]
  6. RewriteRule ^about/?$ / [R=301,L]
  7. # Error documents
  8. ErrorDocument 404 /404.html
  9. # Compression
  10. AddOutputFilterByType DEFLATE text/plain
  11. AddOutputFilterByType DEFLATE text/html
  12. AddOutputFilterByType DEFLATE text/xml
  13. AddOutputFilterByType DEFLATE text/css
  14. AddOutputFilterByType DEFLATE text/javascript
  15. AddOutputFilterByType DEFLATE application/xml
  16. AddOutputFilterByType DEFLATE application/xhtml+xml
  17. AddOutputFilterByType DEFLATE application/rss+xml
  18. AddOutputFilterByType DEFLATE application/javascript
  19. AddOutputFilterByType DEFLATE application/x-javascript
  20. # Caching
  21. <ifModule mod_expires.c>
  22. # A = access <seconds>
  23. ExpiresActive On
  24. ExpiresByType text/html A300
  25. ExpiresByType text/plain A300
  26. ExpiresDefault A604800
  27. ExpiresByType text/javascript A604800
  28. ExpiresByType application/javascript A604800
  29. ExpiresByType application/x-javascript A604800
  30. ExpiresByType text/css A604800
  31. ExpiresByType image/gif A604800
  32. ExpiresByType image/png A604800
  33. ExpiresByType image/jpeg A604800
  34. ExpiresByType application/x-shockwave-flash A604800
  35. ExpiresByType video/x-flv A604800
  36. ExpiresByType application/pdf A604800
  37. ExpiresByType application/x-httpd-php A604800
  38. ExpiresByType image/x-icon A2592000
  39. </ifModule>