Guest User

.htaccess

a guest
Aug 3rd, 2020
29
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. AddHandler ${application/x-httpd-magicwe-php72} .php .php4 .php5 .phtml .html .htm
  2.  
  3.  
  4. # BEGIN W3TC Browser Cache
  5. <IfModule mod_mime.c>
  6. AddType text/css .css
  7. AddType text/x-component .htc
  8. AddType application/x-javascript .js
  9. AddType application/javascript .js2
  10. AddType text/javascript .js3
  11. AddType text/x-js .js4
  12. AddType video/asf .asf .asx .wax .wmv .wmx
  13. AddType video/avi .avi
  14. AddType image/bmp .bmp
  15. AddType application/java .class
  16. AddType video/divx .divx
  17. AddType application/msword .doc .docx
  18. AddType application/vnd.ms-fontobject .eot
  19. AddType application/x-msdownload .exe
  20. AddType image/gif .gif
  21. AddType application/x-gzip .gz .gzip
  22. AddType image/x-icon .ico
  23. AddType image/jpeg .jpg .jpeg .jpe
  24. AddType image/webp .webp
  25. AddType application/json .json
  26. AddType application/vnd.ms-access .mdb
  27. AddType audio/midi .mid .midi
  28. AddType video/quicktime .mov .qt
  29. AddType audio/mpeg .mp3 .m4a
  30. AddType video/mp4 .mp4 .m4v
  31. AddType video/mpeg .mpeg .mpg .mpe
  32. AddType video/webm .webm
  33. AddType application/vnd.ms-project .mpp
  34. AddType application/x-font-otf .otf
  35. AddType application/vnd.ms-opentype ._otf
  36. AddType application/vnd.oasis.opendocument.database .odb
  37. AddType application/vnd.oasis.opendocument.chart .odc
  38. AddType application/vnd.oasis.opendocument.formula .odf
  39. AddType application/vnd.oasis.opendocument.graphics .odg
  40. AddType application/vnd.oasis.opendocument.presentation .odp
  41. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  42. AddType application/vnd.oasis.opendocument.text .odt
  43. AddType audio/ogg .ogg
  44. AddType application/pdf .pdf
  45. AddType image/png .png
  46. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  47. AddType audio/x-realaudio .ra .ram
  48. AddType image/svg+xml .svg .svgz
  49. AddType application/x-shockwave-flash .swf
  50. AddType application/x-tar .tar
  51. AddType image/tiff .tif .tiff
  52. AddType application/x-font-ttf .ttf .ttc
  53. AddType application/vnd.ms-opentype ._ttf
  54. AddType audio/wav .wav
  55. AddType audio/wma .wma
  56. AddType application/vnd.ms-write .wri
  57. AddType application/font-woff .woff
  58. AddType application/font-woff2 .woff2
  59. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  60. AddType application/zip .zip
  61. </IfModule>
  62. <IfModule mod_expires.c>
  63. ExpiresActive On
  64. ExpiresByType text/css A31536000
  65. ExpiresByType text/x-component A31536000
  66. ExpiresByType application/x-javascript A31536000
  67. ExpiresByType application/javascript A31536000
  68. ExpiresByType text/javascript A31536000
  69. ExpiresByType text/x-js A31536000
  70. ExpiresByType video/asf A31536000
  71. ExpiresByType video/avi A31536000
  72. ExpiresByType image/bmp A31536000
  73. ExpiresByType application/java A31536000
  74. ExpiresByType video/divx A31536000
  75. ExpiresByType application/msword A31536000
  76. ExpiresByType application/vnd.ms-fontobject A31536000
  77. ExpiresByType application/x-msdownload A31536000
  78. ExpiresByType image/gif A31536000
  79. ExpiresByType application/x-gzip A31536000
  80. ExpiresByType image/x-icon A31536000
  81. ExpiresByType image/jpeg A31536000
  82. ExpiresByType image/webp A31536000
  83. ExpiresByType application/json A31536000
  84. ExpiresByType application/vnd.ms-access A31536000
  85. ExpiresByType audio/midi A31536000
  86. ExpiresByType video/quicktime A31536000
  87. ExpiresByType audio/mpeg A31536000
  88. ExpiresByType video/mp4 A31536000
  89. ExpiresByType video/mpeg A31536000
  90. ExpiresByType video/webm A31536000
  91. ExpiresByType application/vnd.ms-project A31536000
  92. ExpiresByType application/x-font-otf A31536000
  93. ExpiresByType application/vnd.ms-opentype A31536000
  94. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  95. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  96. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  97. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  98. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  99. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  100. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  101. ExpiresByType audio/ogg A31536000
  102. ExpiresByType application/pdf A31536000
  103. ExpiresByType image/png A31536000
  104. ExpiresByType application/vnd.ms-powerpoint A31536000
  105. ExpiresByType audio/x-realaudio A31536000
  106. ExpiresByType image/svg+xml A31536000
  107. ExpiresByType application/x-shockwave-flash A31536000
  108. ExpiresByType application/x-tar A31536000
  109. ExpiresByType image/tiff A31536000
  110. ExpiresByType application/x-font-ttf A31536000
  111. ExpiresByType application/vnd.ms-opentype A31536000
  112. ExpiresByType audio/wav A31536000
  113. ExpiresByType audio/wma A31536000
  114. ExpiresByType application/vnd.ms-write A31536000
  115. ExpiresByType application/font-woff A31536000
  116. ExpiresByType application/font-woff2 A31536000
  117. ExpiresByType application/vnd.ms-excel A31536000
  118. ExpiresByType application/zip A31536000
  119. </IfModule>
  120. <IfModule mod_deflate.c>
  121. AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon application/json application/vnd.ms-access video/webm application/vnd.ms-project application/x-font-otf application/vnd.ms-opentype application/vnd.oasis.opendocument.database application/vnd.oasis.opendocument.chart application/vnd.oasis.opendocument.formula application/vnd.oasis.opendocument.graphics application/vnd.oasis.opendocument.presentation application/vnd.oasis.opendocument.spreadsheet application/vnd.oasis.opendocument.text audio/ogg application/pdf application/vnd.ms-powerpoint image/svg+xml application/x-shockwave-flash image/tiff application/x-font-ttf application/vnd.ms-opentype audio/wav application/vnd.ms-write application/font-woff application/font-woff2 application/vnd.ms-excel
  122. <IfModule mod_mime.c>
  123. # DEFLATE by extension
  124. AddOutputFilter DEFLATE js css htm html xml
  125. </IfModule>
  126. </IfModule>
  127. <FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
  128. FileETag MTime Size
  129. <IfModule mod_headers.c>
  130. Header unset Set-Cookie
  131. </IfModule>
  132. </FilesMatch>
  133. <FilesMatch "\.(html|htm|rtf|rtx|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|TXT|XSD|XSL|XML)$">
  134. FileETag MTime Size
  135. </FilesMatch>
  136. <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|webp|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|svg|svgz|swf|tar|tif|tiff|ttf|ttc|_ttf|wav|wma|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EOT|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|WEBP|JSON|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SVG|SVGZ|SWF|TAR|TIF|TIFF|TTF|TTC|_TTF|WAV|WMA|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
  137. FileETag MTime Size
  138. <IfModule mod_headers.c>
  139. Header unset Set-Cookie
  140. </IfModule>
  141. </FilesMatch>
  142. <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|json|mdb|webm|mpp|otf|_otf|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|pot|pps|ppt|pptx|svg|svgz|swf|tif|tiff|ttf|ttc|_ttf|wav|wri|woff|woff2|xla|xls|xlsx|xlt|xlw|BMP|CLASS|DOC|DOCX|EOT|EXE|ICO|JSON|MDB|WEBM|MPP|OTF|_OTF|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|POT|PPS|PPT|PPTX|SVG|SVGZ|SWF|TIF|TIFF|TTF|TTC|_TTF|WAV|WRI|WOFF|WOFF2|XLA|XLS|XLSX|XLT|XLW)$">
  143. <IfModule mod_headers.c>
  144. Header unset Last-Modified
  145. </IfModule>
  146. </FilesMatch>
  147. <IfModule mod_headers.c>
  148. Header set Referrer-Policy "no-referrer-when-downgrade"
  149. </IfModule>
  150. # END W3TC Browser Cache
  151. # BEGIN W3TC Page Cache core
  152. <IfModule mod_rewrite.c>
  153. RewriteEngine On
  154. RewriteBase /
  155. RewriteCond %{HTTPS} =on
  156. RewriteRule .* - [E=W3TC_SSL:_ssl]
  157. RewriteCond %{SERVER_PORT} =443
  158. RewriteRule .* - [E=W3TC_SSL:_ssl]
  159. RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
  160. RewriteRule .* - [E=W3TC_SSL:_ssl]
  161. RewriteCond %{HTTP:Accept-Encoding} gzip
  162. RewriteRule .* - [E=W3TC_ENC:_gzip]
  163. RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
  164. RewriteRule .* - [E=W3TC_PREVIEW:_preview]
  165. RewriteCond %{REQUEST_METHOD} !=POST
  166. RewriteCond %{QUERY_STRING} =""
  167. RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
  168. RewriteCond %{REQUEST_URI} \/$
  169. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
  170. RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
  171. </IfModule>
  172. # END W3TC Page Cache core
  173. # BEGIN WordPress
  174. # Директивите (редовете) между `BEGIN WordPress` и `END WordPress` са
  175. # динамично генерирани и трябва да се променят само чрез WordPress филтри.
  176. # Всяка промяна на директивите между тези маркери ще бъде презаписана.
  177. <IfModule mod_rewrite.c>
  178. RewriteEngine On
  179. RewriteBase /
  180. RewriteRule ^index\.php$ - [L]
  181. RewriteCond %{REQUEST_FILENAME} !-f
  182. RewriteCond %{REQUEST_FILENAME} !-d
  183. RewriteRule . /index.php [L]
  184. </IfModule>
  185. # END WordPress
  186. SetEnv PHPRC /home/magicwe/cooltee.bg/php.ini
  187.  
RAW Paste Data