Advertisement
Guest User

my .htaccess

a guest
Sep 20th, 2013
393
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 19.62 KB | None | 0 0
  1. RewriteEngine on
  2.  
  3. # Block Bad Bots & Scrapers
  4. SetEnvIfNoCase User-Agent "Aboundex" bad_bot
  5. SetEnvIfNoCase User-Agent "360Spider" bad_bot
  6. SetEnvIfNoCase User-Agent "^Java" bad_bot
  7. SetEnvIfNoCase User-Agent "^Cogentbot" bad_bot
  8. SetEnvIfNoCase User-Agent "^Alexibot" bad_bot
  9. SetEnvIfNoCase User-Agent "^asterias" bad_bot
  10. SetEnvIfNoCase User-Agent "^attach" bad_bot
  11. SetEnvIfNoCase User-Agent "^BackDoorBot" bad_bot
  12. SetEnvIfNoCase User-Agent "^BackWeb" bad_bot
  13. SetEnvIfNoCase User-Agent "Bandit" bad_bot
  14. SetEnvIfNoCase User-Agent "^BatchFTP" bad_bot
  15. SetEnvIfNoCase User-Agent "^Bigfoot" bad_bot
  16. SetEnvIfNoCase User-Agent "^Black.Hole" bad_bot
  17. SetEnvIfNoCase User-Agent "^BlackWidow" bad_bot
  18. SetEnvIfNoCase User-Agent "^BlowFish" bad_bot
  19. SetEnvIfNoCase User-Agent "^BotALot" bad_bot
  20. SetEnvIfNoCase User-Agent "Buddy" bad_bot
  21. SetEnvIfNoCase User-Agent "^BuiltBotTough" bad_bot
  22. SetEnvIfNoCase User-Agent "^Bullseye" bad_bot
  23. SetEnvIfNoCase User-Agent "^BunnySlippers" bad_bot
  24. SetEnvIfNoCase User-Agent "^Cegbfeieh" bad_bot
  25. SetEnvIfNoCase User-Agent "^CheeseBot" bad_bot
  26. SetEnvIfNoCase User-Agent "^CherryPicker" bad_bot
  27. SetEnvIfNoCase User-Agent "^ChinaClaw" bad_bot
  28. SetEnvIfNoCase User-Agent "Collector" bad_bot
  29. SetEnvIfNoCase User-Agent "Copier" bad_bot
  30. SetEnvIfNoCase User-Agent "^CopyRightCheck" bad_bot
  31. SetEnvIfNoCase User-Agent "^cosmos" bad_bot
  32. SetEnvIfNoCase User-Agent "^Crescent" bad_bot
  33. SetEnvIfNoCase User-Agent "^Custo" bad_bot
  34. SetEnvIfNoCase User-Agent "^AIBOT" bad_bot
  35. SetEnvIfNoCase User-Agent "^DISCo" bad_bot
  36. SetEnvIfNoCase User-Agent "^DIIbot" bad_bot
  37. SetEnvIfNoCase User-Agent "^DittoSpyder" bad_bot
  38. SetEnvIfNoCase User-Agent "^Download\ Demon" bad_bot
  39. SetEnvIfNoCase User-Agent "^Download\ Devil" bad_bot
  40. SetEnvIfNoCase User-Agent "^Download\ Wonder" bad_bot
  41. SetEnvIfNoCase User-Agent "^dragonfly" bad_bot
  42. SetEnvIfNoCase User-Agent "^Drip" bad_bot
  43. SetEnvIfNoCase User-Agent "^eCatch" bad_bot
  44. SetEnvIfNoCase User-Agent "^EasyDL" bad_bot
  45. SetEnvIfNoCase User-Agent "^ebingbong" bad_bot
  46. SetEnvIfNoCase User-Agent "^EirGrabber" bad_bot
  47. SetEnvIfNoCase User-Agent "^EmailCollector" bad_bot
  48. SetEnvIfNoCase User-Agent "^EmailSiphon" bad_bot
  49. SetEnvIfNoCase User-Agent "^EmailWolf" bad_bot
  50. SetEnvIfNoCase User-Agent "^EroCrawler" bad_bot
  51. SetEnvIfNoCase User-Agent "^Exabot" bad_bot
  52. SetEnvIfNoCase User-Agent "^Express\ WebPictures" bad_bot
  53. SetEnvIfNoCase User-Agent "Extractor" bad_bot
  54. SetEnvIfNoCase User-Agent "^EyeNetIE" bad_bot
  55. SetEnvIfNoCase User-Agent "^Foobot" bad_bot
  56. SetEnvIfNoCase User-Agent "^flunky" bad_bot
  57. SetEnvIfNoCase User-Agent "^FrontPage" bad_bot
  58. SetEnvIfNoCase User-Agent "^Go-Ahead-Got-It" bad_bot
  59. SetEnvIfNoCase User-Agent "^gotit" bad_bot
  60. SetEnvIfNoCase User-Agent "^GrabNet" bad_bot
  61. SetEnvIfNoCase User-Agent "^Grafula" bad_bot
  62. SetEnvIfNoCase User-Agent "^Harvest" bad_bot
  63. SetEnvIfNoCase User-Agent "^hloader" bad_bot
  64. SetEnvIfNoCase User-Agent "^HMView" bad_bot
  65. SetEnvIfNoCase User-Agent "^HTTrack" bad_bot
  66. SetEnvIfNoCase User-Agent "^humanlinks" bad_bot
  67. SetEnvIfNoCase User-Agent "^IlseBot" bad_bot
  68. SetEnvIfNoCase User-Agent "^Image\ Stripper" bad_bot
  69. SetEnvIfNoCase User-Agent "^Image\ Sucker" bad_bot
  70. SetEnvIfNoCase User-Agent "Indy\ Library" bad_bot
  71. SetEnvIfNoCase User-Agent "^InfoNaviRobot" bad_bot
  72. SetEnvIfNoCase User-Agent "^InfoTekies" bad_bot
  73. SetEnvIfNoCase User-Agent "^Intelliseek" bad_bot
  74. SetEnvIfNoCase User-Agent "^InterGET" bad_bot
  75. SetEnvIfNoCase User-Agent "^Internet\ Ninja" bad_bot
  76. SetEnvIfNoCase User-Agent "^Iria" bad_bot
  77. SetEnvIfNoCase User-Agent "^Jakarta" bad_bot
  78. SetEnvIfNoCase User-Agent "^JennyBot" bad_bot
  79. SetEnvIfNoCase User-Agent "^JetCar" bad_bot
  80. SetEnvIfNoCase User-Agent "^JOC" bad_bot
  81. SetEnvIfNoCase User-Agent "^JustView" bad_bot
  82. SetEnvIfNoCase User-Agent "^Jyxobot" bad_bot
  83. SetEnvIfNoCase User-Agent "^Kenjin.Spider" bad_bot
  84. SetEnvIfNoCase User-Agent "^Keyword.Density" bad_bot
  85. SetEnvIfNoCase User-Agent "^larbin" bad_bot
  86. SetEnvIfNoCase User-Agent "^LexiBot" bad_bot
  87. SetEnvIfNoCase User-Agent "^lftp" bad_bot
  88. SetEnvIfNoCase User-Agent "^libWeb/clsHTTP" bad_bot
  89. SetEnvIfNoCase User-Agent "^likse" bad_bot
  90. SetEnvIfNoCase User-Agent "^LinkextractorPro" bad_bot
  91. SetEnvIfNoCase User-Agent "^LinkScan/8.1a.Unix" bad_bo
  92. SetEnvIfNoCase User-Agent "^LNSpiderguy" bad_bott
  93. SetEnvIfNoCase User-Agent "^LinkWalker" bad_bot
  94. SetEnvIfNoCase User-Agent "^lwp-trivial" bad_bot
  95. SetEnvIfNoCase User-Agent "^LWP::Simple" bad_bot
  96. SetEnvIfNoCase User-Agent "^Magnet" bad_bot
  97. SetEnvIfNoCase User-Agent "^Mag-Net" bad_bot
  98. SetEnvIfNoCase User-Agent "^MarkWatch" bad_bot
  99. SetEnvIfNoCase User-Agent "^Mass\ Downloader" bad_bot
  100. SetEnvIfNoCase User-Agent "^Mata.Hari" bad_bot
  101. SetEnvIfNoCase User-Agent "^Memo" bad_bot
  102. SetEnvIfNoCase User-Agent "^Microsoft.URL" bad_bot
  103. SetEnvIfNoCase User-Agent "^Microsoft\ URL\ Control" bad_bot
  104. SetEnvIfNoCase User-Agent "^MIDown\ tool" bad_bot
  105. SetEnvIfNoCase User-Agent "^MIIxpc" bad_bot
  106. SetEnvIfNoCase User-Agent "^Mirror" bad_bot
  107. SetEnvIfNoCase User-Agent "^Missigua\ Locator" bad_bot
  108. SetEnvIfNoCase User-Agent "^Mister\ PiX" bad_bot
  109. SetEnvIfNoCase User-Agent "^moget" bad_bot
  110. SetEnvIfNoCase User-Agent "^Mozilla/3.Mozilla/2.01" bad_bot
  111. SetEnvIfNoCase User-Agent "^Mozilla.*NEWT" bad_bot
  112. SetEnvIfNoCase User-Agent "^NAMEPROTECT" bad_bot
  113. SetEnvIfNoCase User-Agent "^Navroad" bad_bot
  114. SetEnvIfNoCase User-Agent "^NearSite" bad_bot
  115. SetEnvIfNoCase User-Agent "^NetAnts" bad_bot
  116. SetEnvIfNoCase User-Agent "^Netcraft" bad_bot
  117. SetEnvIfNoCase User-Agent "^NetMechanic" bad_bot
  118. SetEnvIfNoCase User-Agent "^NetSpider" bad_bot
  119. SetEnvIfNoCase User-Agent "^Net\ Vampire" bad_bot
  120. SetEnvIfNoCase User-Agent "^NetZIP" bad_bot
  121. SetEnvIfNoCase User-Agent "^NextGenSearchBot" bad_bot
  122. SetEnvIfNoCase User-Agent "^NG" bad_bot
  123. SetEnvIfNoCase User-Agent "^NICErsPRO" bad_bot
  124. SetEnvIfNoCase User-Agent "^NimbleCrawler" bad_bot
  125. SetEnvIfNoCase User-Agent "^Ninja" bad_bot
  126. SetEnvIfNoCase User-Agent "^NPbot" bad_bot
  127. SetEnvIfNoCase User-Agent "^Octopus" bad_bot
  128. SetEnvIfNoCase User-Agent "^Offline\ Explorer" bad_bot
  129. SetEnvIfNoCase User-Agent "^Offline\ Navigator" bad_bot
  130. SetEnvIfNoCase User-Agent "^Openfind" bad_bot
  131. SetEnvIfNoCase User-Agent "^OutfoxBot" bad_bot
  132. SetEnvIfNoCase User-Agent "^PageGrabber" bad_bot
  133. SetEnvIfNoCase User-Agent "^Papa\ Foto" bad_bot
  134. SetEnvIfNoCase User-Agent "^pavuk" bad_bot
  135. SetEnvIfNoCase User-Agent "^pcBrowser" bad_bot
  136. SetEnvIfNoCase User-Agent "^PHP\ version\ tracker" bad_bot
  137. SetEnvIfNoCase User-Agent "^Pockey" bad_bot
  138. SetEnvIfNoCase User-Agent "^ProPowerBot/2.14" bad_bot
  139. SetEnvIfNoCase User-Agent "^ProWebWalker" bad_bot
  140. SetEnvIfNoCase User-Agent "^psbot" bad_bot
  141. SetEnvIfNoCase User-Agent "^Pump" bad_bot
  142. SetEnvIfNoCase User-Agent "^QueryN.Metasearch" bad_bot
  143. SetEnvIfNoCase User-Agent "^RealDownload" bad_bot
  144. SetEnvIfNoCase User-Agent "Reaper" bad_bot
  145. SetEnvIfNoCase User-Agent "Recorder" bad_bot
  146. SetEnvIfNoCase User-Agent "^ReGet" bad_bot
  147. SetEnvIfNoCase User-Agent "^RepoMonkey" bad_bot
  148. SetEnvIfNoCase User-Agent "^RMA" bad_bot
  149. SetEnvIfNoCase User-Agent "Siphon" bad_bot
  150. SetEnvIfNoCase User-Agent "^SiteSnagger" bad_bot
  151. SetEnvIfNoCase User-Agent "^SlySearch" bad_bot
  152. SetEnvIfNoCase User-Agent "^SmartDownload" bad_bot
  153. SetEnvIfNoCase User-Agent "^Snake" bad_bot
  154. SetEnvIfNoCase User-Agent "^Snapbot" bad_bot
  155. SetEnvIfNoCase User-Agent "^Snoopy" bad_bot
  156. SetEnvIfNoCase User-Agent "^sogou" bad_bot
  157. SetEnvIfNoCase User-Agent "^SpaceBison" bad_bot
  158. SetEnvIfNoCase User-Agent "^SpankBot" bad_bot
  159. SetEnvIfNoCase User-Agent "^spanner" bad_bot
  160. SetEnvIfNoCase User-Agent "^Sqworm" bad_bot
  161. SetEnvIfNoCase User-Agent "Stripper" bad_bot
  162. SetEnvIfNoCase User-Agent "Sucker" bad_bot
  163. SetEnvIfNoCase User-Agent "^SuperBot" bad_bot
  164. SetEnvIfNoCase User-Agent "^SuperHTTP" bad_bot
  165. SetEnvIfNoCase User-Agent "^Surfbot" bad_bot
  166. SetEnvIfNoCase User-Agent "^suzuran" bad_bot
  167. SetEnvIfNoCase User-Agent "^Szukacz/1.4" bad_bot
  168. SetEnvIfNoCase User-Agent "^tAkeOut" bad_bot
  169. SetEnvIfNoCase User-Agent "^Teleport" bad_bot
  170. SetEnvIfNoCase User-Agent "^Telesoft" bad_bot
  171. SetEnvIfNoCase User-Agent "^TurnitinBot/1.5" bad_bot
  172. SetEnvIfNoCase User-Agent "^The.Intraformant" bad_bot
  173. SetEnvIfNoCase User-Agent "^TheNomad" bad_bot
  174. SetEnvIfNoCase User-Agent "^TightTwatBot" bad_bot
  175. SetEnvIfNoCase User-Agent "^Titan" bad_bot
  176. SetEnvIfNoCase User-Agent "^True_Robot" bad_bot
  177. SetEnvIfNoCase User-Agent "^turingos" bad_bot
  178. SetEnvIfNoCase User-Agent "^TurnitinBot" bad_bot
  179. SetEnvIfNoCase User-Agent "^URLy.Warning" bad_bot
  180. SetEnvIfNoCase User-Agent "^Vacuum" bad_bot
  181. SetEnvIfNoCase User-Agent "^VCI" bad_bot
  182. SetEnvIfNoCase User-Agent "^VoidEYE" bad_bot
  183. SetEnvIfNoCase User-Agent "^Web\ Image\ Collector" bad_bot
  184. SetEnvIfNoCase User-Agent "^Web\ Sucker" bad_bot
  185. SetEnvIfNoCase User-Agent "^WebAuto" bad_bot
  186. SetEnvIfNoCase User-Agent "^WebBandit" bad_bot
  187. SetEnvIfNoCase User-Agent "^Webclipping.com" bad_bot
  188. SetEnvIfNoCase User-Agent "^WebCopier" bad_bot
  189. SetEnvIfNoCase User-Agent "^WebEMailExtrac.*" bad_bot
  190. SetEnvIfNoCase User-Agent "^WebEnhancer" bad_bot
  191. SetEnvIfNoCase User-Agent "^WebFetch" bad_bot
  192. SetEnvIfNoCase User-Agent "^WebGo\ IS" bad_bot
  193. SetEnvIfNoCase User-Agent "^Web.Image.Collector" bad_bot
  194. SetEnvIfNoCase User-Agent "^WebLeacher" bad_bot
  195. SetEnvIfNoCase User-Agent "^WebmasterWorldForumBot" bad_bot
  196. SetEnvIfNoCase User-Agent "^WebReaper" bad_bot
  197. SetEnvIfNoCase User-Agent "^WebSauger" bad_bot
  198. SetEnvIfNoCase User-Agent "^Website\ eXtractor" bad_bot
  199. SetEnvIfNoCase User-Agent "^Website\ Quester" bad_bot
  200. SetEnvIfNoCase User-Agent "^Webster" bad_bot
  201. SetEnvIfNoCase User-Agent "^WebStripper" bad_bot
  202. SetEnvIfNoCase User-Agent "^WebWhacker" bad_bot
  203. SetEnvIfNoCase User-Agent "^WebZIP" bad_bot
  204. SetEnvIfNoCase User-Agent "Whacker" bad_bot
  205. SetEnvIfNoCase User-Agent "^Widow" bad_bot
  206. SetEnvIfNoCase User-Agent "^WISENutbot" bad_bot
  207. SetEnvIfNoCase User-Agent "^WWWOFFLE" bad_bot
  208. SetEnvIfNoCase User-Agent "^WWW-Collector-E" bad_bot
  209. SetEnvIfNoCase User-Agent "^Xaldon" bad_bot
  210. SetEnvIfNoCase User-Agent "^Xenu" bad_bot
  211. SetEnvIfNoCase User-Agent "^Zeus" bad_bot
  212. SetEnvIfNoCase User-Agent "^Zyborg" bad_bot
  213.  
  214. # Vulnerability Scanners
  215. SetEnvIfNoCase User-Agent "Acunetix" bad_bot
  216. SetEnvIfNoCase User-Agent "FHscan" bad_bot
  217.  
  218. # Aggressive Chinese Search Engine
  219. SetEnvIfNoCase User-Agent "Baiduspider" bad_bot
  220.  
  221. # Aggressive Russian Search Engine
  222. SetEnvIfNoCase User-Agent "Yandex" bad_bot
  223.  
  224.  
  225. <Limit GET POST HEAD>
  226. Order Allow,Deny
  227. Allow from all
  228.  
  229. # Cyveillance
  230. deny from 38.100.19.8/29
  231. deny from 38.100.21.0/24
  232. deny from 38.100.41.64/26
  233. deny from 38.105.71.0/25
  234. deny from 38.105.83.0/27
  235. deny from 38.112.21.140/30
  236. deny from 38.118.42.32/29
  237. deny from 65.213.208.128/27
  238. deny from 65.222.176.96/27
  239. deny from 65.222.185.72/29
  240.  
  241. Deny from env=bad_bot
  242. </Limit>
  243.  
  244. # BEGIN ANTISPAMBLOG REGISTRATION
  245.  
  246. RewriteCond %{HTTP_COOKIE} !^.*97674d05a6fcf467b8e51dc408cd1163.*$
  247. RewriteRule ^wp-signup.php - [F,L]
  248.  
  249. # BEGIN Watermark Hotlinked Images
  250. <IfModule mod_rewrite.c>
  251. RewriteEngine On
  252. RewriteCond %{HTTP_REFERER} !^$
  253. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain1.com [NC]
  254. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?feeds.feedburner.com/domain1 [NC]
  255. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain2.com [NC]
  256. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain3.com [NC]
  257. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?domain4.com [NC]
  258. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?google.\ [NC]
  259. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?facebook.com [NC]
  260. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?twitter.com [NC]
  261. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?yahoo.\ [NC]
  262. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?bing.\ [NC]
  263. RewriteCond %{HTTP_REFERER} !^https?://([^.]+\.)?ixquick.com [NC]
  264. RewriteRule ^(.*\.(png|gif|jpe?g))$ /wp-content/plugins/watermark-hotlinked-images/watermark.php?img=$1 [L]
  265. </IfModule>
  266.  
  267.  
  268. # BEGIN W3TC Browser Cache
  269. <IfModule mod_mime.c>
  270. AddType text/css .css
  271. AddType text/x-component .htc
  272. AddType application/x-javascript .js
  273. AddType application/javascript .js2
  274. AddType text/javascript .js3
  275. AddType text/x-js .js4
  276. AddType text/html .html .htm
  277. AddType text/richtext .rtf .rtx
  278. AddType image/svg+xml .svg .svgz
  279. AddType text/plain .txt
  280. AddType text/xsd .xsd
  281. AddType text/xsl .xsl
  282. AddType text/xml .xml
  283. AddType video/asf .asf .asx .wax .wmv .wmx
  284. AddType video/avi .avi
  285. AddType image/bmp .bmp
  286. AddType application/java .class
  287. AddType video/divx .divx
  288. AddType application/msword .doc .docx
  289. AddType application/vnd.ms-fontobject .eot
  290. AddType application/x-msdownload .exe
  291. AddType image/gif .gif
  292. AddType application/x-gzip .gz .gzip
  293. AddType image/x-icon .ico
  294. AddType image/jpeg .jpg .jpeg .jpe
  295. AddType application/json .json
  296. AddType application/vnd.ms-access .mdb
  297. AddType audio/midi .mid .midi
  298. AddType video/quicktime .mov .qt
  299. AddType audio/mpeg .mp3 .m4a
  300. AddType video/mp4 .mp4 .m4v
  301. AddType video/mpeg .mpeg .mpg .mpe
  302. AddType application/vnd.ms-project .mpp
  303. AddType application/x-font-otf .otf
  304. AddType application/vnd.oasis.opendocument.database .odb
  305. AddType application/vnd.oasis.opendocument.chart .odc
  306. AddType application/vnd.oasis.opendocument.formula .odf
  307. AddType application/vnd.oasis.opendocument.graphics .odg
  308. AddType application/vnd.oasis.opendocument.presentation .odp
  309. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  310. AddType application/vnd.oasis.opendocument.text .odt
  311. AddType audio/ogg .ogg
  312. AddType application/pdf .pdf
  313. AddType image/png .png
  314. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  315. AddType audio/x-realaudio .ra .ram
  316. AddType application/x-shockwave-flash .swf
  317. AddType application/x-tar .tar
  318. AddType image/tiff .tif .tiff
  319. AddType application/x-font-ttf .ttf .ttc
  320. AddType audio/wav .wav
  321. AddType audio/wma .wma
  322. AddType application/vnd.ms-write .wri
  323. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  324. AddType application/zip .zip
  325. </IfModule>
  326. <IfModule mod_expires.c>
  327. ExpiresActive On
  328. ExpiresByType text/css A31536000
  329. ExpiresByType text/x-component A31536000
  330. ExpiresByType application/x-javascript A31536000
  331. ExpiresByType application/javascript A31536000
  332. ExpiresByType text/javascript A31536000
  333. ExpiresByType text/x-js A31536000
  334. ExpiresByType text/html A3600
  335. ExpiresByType text/richtext A3600
  336. ExpiresByType image/svg+xml A3600
  337. ExpiresByType text/plain A3600
  338. ExpiresByType text/xsd A3600
  339. ExpiresByType text/xsl A3600
  340. ExpiresByType text/xml A3600
  341. ExpiresByType video/asf A31536000
  342. ExpiresByType video/avi A31536000
  343. ExpiresByType image/bmp A31536000
  344. ExpiresByType application/java A31536000
  345. ExpiresByType video/divx A31536000
  346. ExpiresByType application/msword A31536000
  347. ExpiresByType application/vnd.ms-fontobject A31536000
  348. ExpiresByType application/x-msdownload A31536000
  349. ExpiresByType image/gif A31536000
  350. ExpiresByType application/x-gzip A31536000
  351. ExpiresByType image/x-icon A31536000
  352. ExpiresByType image/jpeg A31536000
  353. ExpiresByType application/json A31536000
  354. ExpiresByType application/vnd.ms-access A31536000
  355. ExpiresByType audio/midi A31536000
  356. ExpiresByType video/quicktime A31536000
  357. ExpiresByType audio/mpeg A31536000
  358. ExpiresByType video/mp4 A31536000
  359. ExpiresByType video/mpeg A31536000
  360. ExpiresByType application/vnd.ms-project A31536000
  361. ExpiresByType application/x-font-otf A31536000
  362. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  363. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  364. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  365. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  366. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  367. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  368. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  369. ExpiresByType audio/ogg A31536000
  370. ExpiresByType application/pdf A31536000
  371. ExpiresByType image/png A31536000
  372. ExpiresByType application/vnd.ms-powerpoint A31536000
  373. ExpiresByType audio/x-realaudio A31536000
  374. ExpiresByType image/svg+xml A31536000
  375. ExpiresByType application/x-shockwave-flash A31536000
  376. ExpiresByType application/x-tar A31536000
  377. ExpiresByType image/tiff A31536000
  378. ExpiresByType application/x-font-ttf A31536000
  379. ExpiresByType audio/wav A31536000
  380. ExpiresByType audio/wma A31536000
  381. ExpiresByType application/vnd.ms-write A31536000
  382. ExpiresByType application/vnd.ms-excel A31536000
  383. ExpiresByType application/zip A31536000
  384. </IfModule>
  385. <IfModule mod_deflate.c>
  386. <IfModule mod_headers.c>
  387. Header append Vary User-Agent env=!dont-vary
  388. </IfModule>
  389. 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/x-icon application/json
  390. <IfModule mod_mime.c>
  391. # DEFLATE by extension
  392. AddOutputFilter DEFLATE js css htm html xml
  393. </IfModule>
  394. </IfModule>
  395. <FilesMatch "\.(css|htc|js|js2|js3|js4|CSS|HTC|JS|JS2|JS3|JS4)$">
  396. <IfModule mod_headers.c>
  397. Header set Pragma "public"
  398. Header append Cache-Control "public"
  399. Header set X-Powered-By "W3 Total Cache/0.9.3"
  400. </IfModule>
  401. </FilesMatch>
  402. <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
  403. <IfModule mod_headers.c>
  404. Header set Pragma "public"
  405. Header append Cache-Control "public"
  406. Header set X-Powered-By "W3 Total Cache/0.9.3"
  407. </IfModule>
  408. </FilesMatch>
  409. <FilesMatch "\.(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|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)$">
  410. <IfModule mod_headers.c>
  411. Header set Pragma "public"
  412. Header append Cache-Control "public"
  413. Header set X-Powered-By "W3 Total Cache/0.9.3"
  414. </IfModule>
  415. </FilesMatch>
  416. # END W3TC Browser Cache
  417. # BEGIN W3TC Skip 404 error handling by WordPress for static files
  418. <IfModule mod_rewrite.c>
  419. RewriteEngine On
  420. RewriteCond %{REQUEST_FILENAME} !-f
  421. RewriteCond %{REQUEST_FILENAME} !-d
  422. RewriteCond %{REQUEST_URI} !(robots\.txt|sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?)
  423. RewriteCond %{REQUEST_FILENAME} \.(css|htc|js|js2|js3|js4|html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|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)$ [NC]
  424. RewriteRule .* - [L]
  425. </IfModule>
  426. # END W3TC Skip 404 error handling by WordPress for static files
  427. # BEGIN WordPress
  428. RewriteEngine On
  429. RewriteBase /
  430. RewriteRule ^index\.php$ - [L]
  431.  
  432. # add a trailing slash to /wp-admin
  433. RewriteRule ^wp-admin$ wp-admin/ [R=301,L]
  434.  
  435. RewriteCond %{REQUEST_FILENAME} -f [OR]
  436. RewriteCond %{REQUEST_FILENAME} -d
  437. RewriteRule ^ - [L]
  438. RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
  439. RewriteRule ^(.*\.php)$ wp/$1 [L]
  440. RewriteRule . index.php [L]
  441. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement