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.2KB

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