Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

.htaccess 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # WARNING: For PHP 7 the module name in the line below need to be modified!
  2. <IfModule mod_php5.c>
  3. php_flag display_errors Off
  4. php_flag log_errors On
  5. # php_value error_log logs/errors
  6. php_value upload_max_filesize 5M
  7. php_value post_max_size 6M
  8. php_value memory_limit 64M
  9. php_flag register_globals Off
  10. php_flag zlib.output_compression Off
  11. php_flag magic_quotes_gpc Off
  12. php_flag magic_quotes_runtime Off
  13. php_flag suhosin.session.encrypt Off
  14. #php_value session.cookie_path /
  15. #php_value session.hash_function sha256
  16. php_flag session.auto_start Off
  17. php_value session.gc_maxlifetime 21600
  18. php_value session.gc_divisor 500
  19. php_value session.gc_probability 1
  20. </IfModule>
  21. <IfModule mod_rewrite.c>
  22. Options +SymLinksIfOwnerMatch
  23. RewriteEngine On
  24. RewriteRule ^favicon\.ico$ skins/larry/images/favicon.ico
  25. # security rules:
  26. # - deny access to files not containing a dot or starting with a dot
  27. # in all locations except installer directory
  28. RewriteRule ^(?!installer|\.well-known\/|[a-zA-Z0-9]{16})(\.?[^\.]+)$ - [F]
  29. # - deny access to some locations
  30. RewriteRule ^/?(\.git|\.tx|SQL|bin|config|logs|temp|tests|program\/(include|lib|localization|steps)) - [F]
  31. # - deny access to some documentation files
  32. RewriteRule /?(README\.md|composer\.json-dist|composer\.json|package\.xml|Dockerfile)$ - [F]
  33. </IfModule>
  34. <IfModule mod_deflate.c>
  35. SetOutputFilter DEFLATE
  36. </IfModule>
  37. <IfModule mod_headers.c>
  38. # replace 'append' with 'merge' for Apache version 2.2.9 and later
  39. #Header append Cache-Control public env=!NO_CACHE
  40. # for better privacy/security ask browsers to not set the Referer
  41. #Header set Content-Security-Policy "referrer no-referrer"
  42. </IfModule>
  43. <IfModule mod_expires.c>
  44. ExpiresActive On
  45. ExpiresDefault "access plus 1 month"
  46. </IfModule>
  47. FileETag MTime Size
  48. <IfModule mod_autoindex.c>
  49. Options -Indexes
  50. </ifModule>