Guest User

Untitled

a guest
May 3rd, 2019
1,494
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 17.87 KB | None | 0 0
  1. # BEGIN WP Rocket v3.3
  2. # Use UTF-8 encoding for anything served text/plain or text/html
  3. AddDefaultCharset UTF-8
  4. # Force UTF-8 for a number of file formats
  5. <IfModule mod_mime.c>
  6. AddCharset UTF-8 .atom .css .js .json .rss .vtt .xml
  7. </IfModule>
  8. # FileETag None is not enough for every server.
  9. <IfModule mod_headers.c>
  10. Header unset ETag
  11. </IfModule>
  12. # Since we’re sending far-future expires, we don’t need ETags for static content.
  13. # developer.yahoo.com/performance/rules.html#etags
  14. FileETag None
  15. # Send CORS headers if browsers request them; enabled by default for images.
  16. <IfModule mod_setenvif.c>
  17. <IfModule mod_headers.c>
  18. # mod_headers, y u no match by Content-Type?!
  19. <FilesMatch "\.(cur|gif|png|jpe?g|svgz?|ico|webp)$">
  20. SetEnvIf Origin ":" IS_CORS
  21. Header set Access-Control-Allow-Origin "*" env=IS_CORS
  22. </FilesMatch>
  23. </IfModule>
  24. </IfModule>
  25. # Allow access to web fonts from all domains.
  26. <FilesMatch "\.(eot|otf|tt[cf]|woff2?)$">
  27. <IfModule mod_headers.c>
  28. Header set Access-Control-Allow-Origin "*"
  29. </IfModule>
  30. </FilesMatch>
  31. <IfModule mod_alias.c>
  32. <FilesMatch "\.(html|htm|rtf|rtx|txt|xsd|xsl|xml)$">
  33. <IfModule mod_headers.c>
  34. Header set X-Powered-By "WP Rocket/3.3"
  35. Header unset Pragma
  36. Header append Cache-Control "public"
  37. Header unset Last-Modified
  38. </IfModule>
  39. </FilesMatch>
  40. <FilesMatch "\.(css|htc|js|asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|json|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|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|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip)$">
  41. <IfModule mod_headers.c>
  42. Header unset Pragma
  43. Header append Cache-Control "public"
  44. </IfModule>
  45. </FilesMatch>
  46. </IfModule>
  47. # Expires headers (for better cache control)
  48. <IfModule mod_expires.c>
  49. ExpiresActive on
  50. # Perhaps better to whitelist expires rules? Perhaps.
  51. ExpiresDefault "access plus 1 month"
  52. # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
  53. ExpiresByType text/cache-manifest "access plus 0 seconds"
  54. # Your document html
  55. ExpiresByType text/html "access plus 0 seconds"
  56. # Data
  57. ExpiresByType text/xml "access plus 0 seconds"
  58. ExpiresByType application/xml "access plus 0 seconds"
  59. ExpiresByType application/json "access plus 0 seconds"
  60. # Feed
  61. ExpiresByType application/rss+xml "access plus 1 hour"
  62. ExpiresByType application/atom+xml "access plus 1 hour"
  63. # Favicon (cannot be renamed)
  64. ExpiresByType image/x-icon "access plus 1 week"
  65. # Media: images, video, audio
  66. ExpiresByType image/gif "access plus 4 months"
  67. ExpiresByType image/png "access plus 4 months"
  68. ExpiresByType image/jpeg "access plus 4 months"
  69. ExpiresByType image/webp "access plus 4 months"
  70. ExpiresByType video/ogg "access plus 1 month"
  71. ExpiresByType audio/ogg "access plus 1 month"
  72. ExpiresByType video/mp4 "access plus 1 month"
  73. ExpiresByType video/webm "access plus 1 month"
  74. # HTC files (css3pie)
  75. ExpiresByType text/x-component "access plus 1 month"
  76. # Webfonts
  77. ExpiresByType application/x-font-ttf "access plus 1 month"
  78. ExpiresByType font/opentype "access plus 1 month"
  79. ExpiresByType application/x-font-woff "access plus 1 month"
  80. ExpiresByType application/x-font-woff2 "access plus 1 month"
  81. ExpiresByType image/svg+xml "access plus 1 month"
  82. ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  83. # CSS and JavaScript
  84. ExpiresByType text/css "access plus 1 year"
  85. ExpiresByType application/javascript "access plus 1 year"
  86. </IfModule>
  87. # Gzip compression
  88. <IfModule mod_deflate.c>
  89. # Active compression
  90. SetOutputFilter DEFLATE
  91. # Force deflate for mangled headers
  92. <IfModule mod_setenvif.c>
  93. <IfModule mod_headers.c>
  94. SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
  95. RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
  96. # Don’t compress images and other uncompressible content
  97. SetEnvIfNoCase Request_URI \
  98. \.(?:gif|jpe?g|png|rar|zip|exe|flv|mov|wma|mp3|avi|swf|mp?g|mp4|webm|webp|pdf)$ no-gzip dont-vary
  99. </IfModule>
  100. </IfModule>
  101. # Compress all output labeled with one of the following MIME-types
  102. <IfModule mod_filter.c>
  103. AddOutputFilterByType DEFLATE application/atom+xml \
  104. application/javascript \
  105. application/json \
  106. application/rss+xml \
  107. application/vnd.ms-fontobject \
  108. application/x-font-ttf \
  109. application/xhtml+xml \
  110. application/xml \
  111. font/opentype \
  112. image/svg+xml \
  113. image/x-icon \
  114. text/css \
  115. text/html \
  116. text/plain \
  117. text/x-component \
  118. text/xml
  119. </IfModule>
  120. <IfModule mod_headers.c>
  121. Header append Vary: Accept-Encoding
  122. </IfModule>
  123. </IfModule>
  124. <IfModule mod_mime.c>
  125. AddType text/html .html_gzip
  126. AddEncoding gzip .html_gzip
  127. </IfModule>
  128. <IfModule mod_setenvif.c>
  129. SetEnvIfNoCase Request_URI \.html_gzip$ no-gzip
  130. </IfModule>
  131. <IfModule mod_rewrite.c>
  132. RewriteEngine On
  133. RewriteBase /
  134. RewriteCond %{HTTPS} on [OR]
  135. RewriteCond %{SERVER_PORT} ^443$ [OR]
  136. RewriteCond %{HTTP:X-Forwarded-Proto} https
  137. RewriteRule .* - [E=WPR_SSL:-https]
  138. RewriteCond %{HTTP:Accept-Encoding} gzip
  139. RewriteRule .* - [E=WPR_ENC:_gzip]
  140. RewriteCond %{REQUEST_METHOD} GET
  141. RewriteCond %{QUERY_STRING} =""
  142. RewriteCond %{HTTP:Cookie} !(wordpress_logged_in_.+|wp-postpass_|wptouch_switch_toggle|comment_author_|comment_author_email_) [NC]
  143. RewriteCond %{REQUEST_URI} !^(/(.+/)?feed/?|/(index\.php/)?wp\-json(/.*|$))$ [NC]
  144. RewriteCond %{HTTP_USER_AGENT} !^(facebookexternalhit).* [NC]
  145. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}" -f
  146. RewriteRule .* "/wp-content/cache/wp-rocket/%{HTTP_HOST}%{REQUEST_URI}/index%{ENV:WPR_SSL}.html%{ENV:WPR_ENC}" [L]
  147. </IfModule>
  148. # END WP Rocket
  149. # BEGIN WP Hide & Security Enhancer
  150. <IfModule mod_rewrite.c>
  151. RewriteEngine On
  152. RewriteBase /
  153. #WriteCheckString:1556824473_79749
  154. RewriteRule .* - [E=HTTP_MOD_REWRITE:On]
  155. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/wph/%{HTTP_HOST}%{REQUEST_URI}" -f
  156. RewriteRule .* "/wp-content/cache/wph/%{HTTP_HOST}%{REQUEST_URI}" [L]
  157. RewriteRule ^skin/main /wp-content/plugins/wp-hide-security-enhancer/router/file-process.php?action=style-clean&file_path=/wp-content/themes/mysite/style.css&replacement_path=/skin/main [L,QSA]
  158. RewriteRule ^skin/main /wp-content/themes/mysite/style.css [L,QSA]
  159. RewriteRule ^skin/(.+) /wp-content/themes/mysite/$1 [L,QSA]
  160. RewriteRule ^function/frm/(.+) /wp-content/plugins/redux-framework/$1 [L,QSA]
  161. RewriteRule ^function/contact/(.+) /wp-content/plugins/contact-form-7/$1 [L,QSA]
  162. RewriteRule ^function/mega/(.+) /wp-content/plugins/megamenu/$1 [L,QSA]
  163. RewriteRule ^function/ssl/(.+) /wp-content/plugins/really-simple-ssl/$1 [L,QSA]
  164. RewriteRule ^function/cache/(.+) /wp-content/plugins/w3-total-cache/$1 [L,QSA]
  165. RewriteRule ^function/secure/(.+) /wp-content/plugins/wordfence/$1 [L,QSA]
  166. RewriteRule ^function/gdpr/(.+) /wp-content/plugins/wp-gdpr-compliance/$1 [L,QSA]
  167. RewriteRule ^function/(.+) /wp-content/plugins/$1 [L,QSA]
  168. RewriteRule ^lib/(.+) /wp-includes/$1 [L,QSA]
  169. RewriteRule ^assests/(.+) /wp-content/$1 [L,QSA]
  170. RewriteRule ^logare.php(.*) /wp-login.php$1 [L,QSA]
  171. RewriteCond %{ENV:REDIRECT_STATUS} ^$
  172. RewriteRule ^wp-login.php /index.php?wph-throw-404 [L]
  173. RewriteCond %{REQUEST_URI} /admini$
  174. RewriteRule ^(.*)$ /admini/ [R=301,L]
  175. RewriteRule ^admini(.*) /wp-admin$1 [L,QSA]
  176. RewriteCond %{ENV:REDIRECT_STATUS} ^$
  177. RewriteRule ^wp-admin(.+) /index.php?wph-throw-404 [L]
  178. </IfModule>
  179. # END WP Hide & Security Enhancer
  180. # BEGIN W3TC Browser Cache
  181. <IfModule mod_mime.c>
  182. AddType text/css .css
  183. AddType text/x-component .htc
  184. AddType application/x-javascript .js
  185. AddType application/javascript .js2
  186. AddType text/javascript .js3
  187. AddType text/x-js .js4
  188. AddType video/asf .asf .asx .wax .wmv .wmx
  189. AddType video/avi .avi
  190. AddType image/bmp .bmp
  191. AddType application/java .class
  192. AddType video/divx .divx
  193. AddType application/msword .doc .docx
  194. AddType application/vnd.ms-fontobject .eot
  195. AddType application/x-msdownload .exe
  196. AddType image/gif .gif
  197. AddType application/x-gzip .gz .gzip
  198. AddType image/x-icon .ico
  199. AddType image/jpeg .jpg .jpeg .jpe
  200. AddType image/webp .webp
  201. AddType application/json .json
  202. AddType application/vnd.ms-access .mdb
  203. AddType audio/midi .mid .midi
  204. AddType video/quicktime .mov .qt
  205. AddType audio/mpeg .mp3 .m4a
  206. AddType video/mp4 .mp4 .m4v
  207. AddType video/mpeg .mpeg .mpg .mpe
  208. AddType video/webm .webm
  209. AddType application/vnd.ms-project .mpp
  210. AddType application/x-font-otf .otf
  211. AddType application/vnd.ms-opentype ._otf
  212. AddType application/vnd.oasis.opendocument.database .odb
  213. AddType application/vnd.oasis.opendocument.chart .odc
  214. AddType application/vnd.oasis.opendocument.formula .odf
  215. AddType application/vnd.oasis.opendocument.graphics .odg
  216. AddType application/vnd.oasis.opendocument.presentation .odp
  217. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  218. AddType application/vnd.oasis.opendocument.text .odt
  219. AddType audio/ogg .ogg
  220. AddType application/pdf .pdf
  221. AddType image/png .png
  222. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  223. AddType audio/x-realaudio .ra .ram
  224. AddType image/svg+xml .svg .svgz
  225. AddType application/x-shockwave-flash .swf
  226. AddType application/x-tar .tar
  227. AddType image/tiff .tif .tiff
  228. AddType application/x-font-ttf .ttf .ttc
  229. AddType application/vnd.ms-opentype ._ttf
  230. AddType audio/wav .wav
  231. AddType audio/wma .wma
  232. AddType application/vnd.ms-write .wri
  233. AddType application/font-woff .woff
  234. AddType application/font-woff2 .woff2
  235. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  236. AddType application/zip .zip
  237. </IfModule>
  238. <IfModule mod_expires.c>
  239. ExpiresActive On
  240. ExpiresByType text/css A31536000
  241. ExpiresByType text/x-component A31536000
  242. ExpiresByType application/x-javascript A31536000
  243. ExpiresByType application/javascript A31536000
  244. ExpiresByType text/javascript A31536000
  245. ExpiresByType text/x-js A31536000
  246. ExpiresByType video/asf A31536000
  247. ExpiresByType video/avi A31536000
  248. ExpiresByType image/bmp A31536000
  249. ExpiresByType application/java A31536000
  250. ExpiresByType video/divx A31536000
  251. ExpiresByType application/msword A31536000
  252. ExpiresByType application/vnd.ms-fontobject A31536000
  253. ExpiresByType application/x-msdownload A31536000
  254. ExpiresByType image/gif A31536000
  255. ExpiresByType application/x-gzip A31536000
  256. ExpiresByType image/x-icon A31536000
  257. ExpiresByType image/jpeg A31536000
  258. ExpiresByType image/webp A31536000
  259. ExpiresByType application/json A31536000
  260. ExpiresByType application/vnd.ms-access A31536000
  261. ExpiresByType audio/midi A31536000
  262. ExpiresByType video/quicktime A31536000
  263. ExpiresByType audio/mpeg A31536000
  264. ExpiresByType video/mp4 A31536000
  265. ExpiresByType video/mpeg A31536000
  266. ExpiresByType video/webm A31536000
  267. ExpiresByType application/vnd.ms-project A31536000
  268. ExpiresByType application/x-font-otf A31536000
  269. ExpiresByType application/vnd.ms-opentype A31536000
  270. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  271. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  272. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  273. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  274. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  275. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  276. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  277. ExpiresByType audio/ogg A31536000
  278. ExpiresByType application/pdf A31536000
  279. ExpiresByType image/png A31536000
  280. ExpiresByType application/vnd.ms-powerpoint A31536000
  281. ExpiresByType audio/x-realaudio A31536000
  282. ExpiresByType image/svg+xml A31536000
  283. ExpiresByType application/x-shockwave-flash A31536000
  284. ExpiresByType application/x-tar A31536000
  285. ExpiresByType image/tiff A31536000
  286. ExpiresByType application/x-font-ttf A31536000
  287. ExpiresByType application/vnd.ms-opentype A31536000
  288. ExpiresByType audio/wav A31536000
  289. ExpiresByType audio/wma A31536000
  290. ExpiresByType application/vnd.ms-write A31536000
  291. ExpiresByType application/font-woff A31536000
  292. ExpiresByType application/font-woff2 A31536000
  293. ExpiresByType application/vnd.ms-excel A31536000
  294. ExpiresByType application/zip A31536000
  295. </IfModule>
  296. <IfModule mod_deflate.c>
  297. AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/bmp application/java application/msword application/vnd.ms-fontobject application/x-msdownload image/x-icon image/webp 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
  298. <IfModule mod_mime.c>
  299. # DEFLATE by extension
  300. AddOutputFilter DEFLATE js css htm html xml
  301. </IfModule>
  302. </IfModule>
  303. <FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
  304. FileETag MTime Size
  305. <IfModule mod_headers.c>
  306. Header unset Set-Cookie
  307. </IfModule>
  308. </FilesMatch>
  309. <FilesMatch "\.(html|htm|rtf|rtx|svg|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|TXT|XSD|XSL|XML)$">
  310. FileETag MTime Size
  311. <IfModule mod_headers.c>
  312. Header append Vary User-Agent env=!dont-vary
  313. </IfModule>
  314. </FilesMatch>
  315. <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)$">
  316. FileETag MTime Size
  317. <IfModule mod_headers.c>
  318. Header unset Set-Cookie
  319. </IfModule>
  320. </FilesMatch>
  321. <FilesMatch "\.(bmp|class|doc|docx|eot|exe|ico|webp|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|WEBP|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)$">
  322. <IfModule mod_headers.c>
  323. Header unset Last-Modified
  324. </IfModule>
  325. </FilesMatch>
  326. <IfModule mod_headers.c>
  327. Header set Referrer-Policy "no-referrer-when-downgrade"
  328. </IfModule>
  329. # END W3TC Browser Cache
  330. # BEGIN W3TC CDN
  331. <IfModule mod_headers.c>
  332. Header set Access-Control-Allow-Origin "*"
  333. </IfModule>
  334. # END W3TC CDN
  335. # BEGIN W3TC Page Cache core
  336. <IfModule mod_rewrite.c>
  337. RewriteEngine On
  338. RewriteBase /
  339. RewriteCond %{HTTPS} =on
  340. RewriteRule .* - [E=W3TC_SSL:_ssl]
  341. RewriteCond %{SERVER_PORT} =443
  342. RewriteRule .* - [E=W3TC_SSL:_ssl]
  343. RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC]
  344. RewriteRule .* - [E=W3TC_SSL:_ssl]
  345. RewriteCond %{HTTP:Accept-Encoding} gzip
  346. RewriteRule .* - [E=W3TC_ENC:_gzip]
  347. RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
  348. RewriteRule .* - [E=W3TC_PREVIEW:_preview]
  349. RewriteCond %{REQUEST_METHOD} !=POST
  350. RewriteCond %{QUERY_STRING} =""
  351. RewriteCond %{REQUEST_URI} \/$
  352. RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
  353. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
  354. RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_SSL}%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
  355. </IfModule>
  356. # END W3TC Page Cache core
  357. # BEGIN WordPress
  358. <IfModule mod_rewrite.c>
  359. RewriteEngine On
  360. RewriteBase /
  361. RewriteRule ^index\.php$ - [L]
  362. RewriteCond %{REQUEST_FILENAME} !-f
  363. RewriteCond %{REQUEST_FILENAME} !-d
  364. RewriteRule . /index.php [L]
  365. </IfModule>
  366. # END WordPress
  367. # php -- BEGIN cPanel-generated handler, do not edit
  368. # Set the “ea-php56” package as the default “PHP” programming language.
  369. <IfModule mime_module>
  370. AddHandler application/x-httpd-ea-php56 .php .php5 .phtml
  371. </IfModule>
  372. # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment