Advertisement
Guest User

Htaccess Combe old

a guest
Aug 20th, 2019
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.36 KB | None | 0 0
  1. # All explanations you could find in .htaccess.sample file
  2. DirectoryIndex index.php
  3. <IfModule mod_php5.c>
  4. php_value memory_limit 756M
  5. php_value max_execution_time 18000
  6. php_flag session.auto_start off
  7. php_flag suhosin.session.cryptua off
  8. </IfModule>
  9. <IfModule mod_php7.c>
  10. php_value memory_limit 756M
  11. php_value max_execution_time 18000
  12. php_flag session.auto_start off
  13. php_flag suhosin.session.cryptua off
  14. </IfModule>
  15. <IfModule mod_security.c>
  16. SecFilterEngine Off
  17. SecFilterScanPOST Off
  18. </IfModule>
  19. <IfModule mod_ssl.c>
  20. SSLOptions StdEnvVars
  21. </IfModule>
  22. <IfModule mod_rewrite.c>
  23. Options +FollowSymLinks
  24. RewriteEngine on
  25. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  26. RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
  27. RewriteRule .* - [L,R=405]
  28. RewriteCond %{REQUEST_FILENAME} !-f
  29. RewriteCond %{REQUEST_FILENAME} !-d
  30. RewriteCond %{REQUEST_FILENAME} !-l
  31. RewriteRule .* index.php [L]
  32. </IfModule>
  33. AddDefaultCharset Off
  34. AddType 'text/html; charset=UTF-8' html
  35. <IfModule mod_expires.c>
  36. ExpiresDefault "access plus 1 year"
  37. ExpiresByType text/html A0
  38. ExpiresByType text/plain A0
  39. </IfModule>
  40. RedirectMatch 403 /\.git
  41. <Files composer.json>
  42. order allow,deny
  43. deny from all
  44. </Files>
  45. <Files composer.lock>
  46. order allow,deny
  47. deny from all
  48. </Files>
  49. <Files .gitignore>
  50. order allow,deny
  51. deny from all
  52. </Files>
  53. <Files .htaccess>
  54. order allow,deny
  55. deny from all
  56. </Files>
  57. <Files .htaccess.sample>
  58. order allow,deny
  59. deny from all
  60. </Files>
  61. <Files .php_cs>
  62. order allow,deny
  63. deny from all
  64. </Files>
  65. <Files .travis.yml>
  66. order allow,deny
  67. deny from all
  68. </Files>
  69. <Files CHANGELOG.md>
  70. order allow,deny
  71. deny from all
  72. </Files>
  73. <Files CONTRIBUTING.md>
  74. order allow,deny
  75. deny from all
  76. </Files>
  77. <Files COPYING.txt>
  78. order allow,deny
  79. deny from all
  80. </Files>
  81. <Files Gruntfile.js>
  82. order allow,deny
  83. deny from all
  84. </Files>
  85. <Files LICENSE.txt>
  86. order allow,deny
  87. deny from all
  88. </Files>
  89. <Files LICENSE_AFL.txt>
  90. order allow,deny
  91. deny from all
  92. </Files>
  93. <Files nginx.conf.sample>
  94. order allow,deny
  95. deny from all
  96. </Files>
  97. <Files package.json>
  98. order allow,deny
  99. deny from all
  100. </Files>
  101. <Files php.ini.sample>
  102. order allow,deny
  103. deny from all
  104. </Files>
  105. <Files README.md>
  106. order allow,deny
  107. deny from all
  108. </Files>
  109. <Files auth.json>
  110. order allow,deny
  111. deny from all
  112. </Files>
  113. <Files magento_umask>
  114. order allow,deny
  115. deny from all
  116. </Files>
  117. ErrorDocument 404 /pub/errors/404.php
  118. ErrorDocument 403 /pub/errors/404.php
  119. <IfModule mod_headers.c>
  120. Header set X-UA-Compatible "IE=edge"
  121. <FilesMatch "\.(appcache|atom|bbaw|bmp|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcard|vcf|vtt|webapp|web[mp]|webmanifest|woff2?|xloc|xml|xpi)$">
  122. Header unset X-UA-Compatible
  123. </FilesMatch>
  124. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement