Guest User

Untitled

a guest
Sep 20th, 2015
69
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # permanently redirect from www domain to non-www domain
  2. RewriteEngine on
  3. Options +FollowSymLinks
  4. RewriteCond %{HTTP_HOST} ^www\.domain\.tld$ [NC]
  5. RewriteRule ^(.*)$ http://domain.tld/$1 [R=301,L]
  6.  
  7. # BEGIN WordPress
  8. <IfModule mod_rewrite.c>
  9. RewriteEngine On
  10. RewriteBase /
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteRule ^([^?]*)$ /index.php [NC,L,QSA]
  14. </IfModule>
  15. # END WordPress
  16.  
  17. SetEnv TZ America/Chicago
  18.  
  19. DefaultLanguage en-US
  20.  
  21. # CDN
  22. <If "%{HTTP_HOST} == 'asylum.rocks' ">
  23. RedirectMatch ^/imgs/(.*)$ http://imgs.asylum.rocks/$1
  24. </If>
  25.  
  26. # BEGIN W3TC Browser Cache
  27. <IfModule mod_mime.c>
  28. AddType text/css .css
  29. AddType text/x-component .htc
  30. AddType application/x-javascript .js
  31. AddType application/javascript .js2
  32. AddType text/javascript .js3
  33. AddType text/x-js .js4
  34. AddType text/html .html .htm
  35. AddType text/richtext .rtf .rtx
  36. AddType image/svg+xml .svg .svgz
  37. AddType text/plain .txt
  38. AddType text/xsd .xsd
  39. AddType text/xsl .xsl
  40. AddType text/xml .xml
  41. AddType video/asf .asf .asx .wax .wmv .wmx
  42. AddType video/avi .avi
  43. AddType image/bmp .bmp
  44. AddType application/java .class
  45. AddType video/divx .divx
  46. AddType application/msword .doc .docx
  47. AddType application/vnd.ms-fontobject .eot
  48. AddType application/x-msdownload .exe
  49. AddType image/gif .gif
  50. AddType application/x-gzip .gz .gzip
  51. AddType image/x-icon .ico
  52. AddType image/jpeg .jpg .jpeg .jpe
  53. AddType application/json .json
  54. AddType application/vnd.ms-access .mdb
  55. AddType audio/midi .mid .midi
  56. AddType video/quicktime .mov .qt
  57. AddType audio/mpeg .mp3 .m4a
  58. AddType video/mp4 .mp4 .m4v
  59. AddType video/mpeg .mpeg .mpg .mpe
  60. AddType application/vnd.ms-project .mpp
  61. AddType application/x-font-otf .otf
  62. AddType application/vnd.ms-opentype .otf
  63. AddType application/vnd.oasis.opendocument.database .odb
  64. AddType application/vnd.oasis.opendocument.chart .odc
  65. AddType application/vnd.oasis.opendocument.formula .odf
  66. AddType application/vnd.oasis.opendocument.graphics .odg
  67. AddType application/vnd.oasis.opendocument.presentation .odp
  68. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  69. AddType application/vnd.oasis.opendocument.text .odt
  70. AddType audio/ogg .ogg
  71. AddType application/pdf .pdf
  72. AddType image/png .png
  73. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  74. AddType audio/x-realaudio .ra .ram
  75. AddType application/x-shockwave-flash .swf
  76. AddType application/x-tar .tar
  77. AddType image/tiff .tif .tiff
  78. AddType application/x-font-ttf .ttf .ttc
  79. AddType application/vnd.ms-opentype .ttf .ttc
  80. AddType audio/wav .wav
  81. AddType audio/wma .wma
  82. AddType application/vnd.ms-write .wri
  83. AddType application/font-woff .woff
  84. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  85. AddType application/zip .zip
  86. </IfModule>
  87. <IfModule mod_expires.c>
  88. ExpiresActive On
  89. ExpiresByType text/css A31536000
  90. ExpiresByType text/x-component A31536000
  91. ExpiresByType application/x-javascript A31536000
  92. ExpiresByType application/javascript A31536000
  93. ExpiresByType text/javascript A31536000
  94. ExpiresByType text/x-js A31536000
  95. ExpiresByType text/html A3600
  96. ExpiresByType text/richtext A3600
  97. ExpiresByType image/svg+xml A3600
  98. ExpiresByType text/plain A3600
  99. ExpiresByType text/xsd A3600
  100. ExpiresByType text/xsl A3600
  101. ExpiresByType text/xml A3600
  102. ExpiresByType video/asf A31536000
  103. ExpiresByType video/avi A31536000
  104. ExpiresByType image/bmp A31536000
  105. ExpiresByType application/java A31536000
  106. ExpiresByType video/divx A31536000
  107. ExpiresByType application/msword A31536000
  108. ExpiresByType application/vnd.ms-fontobject A31536000
  109. ExpiresByType application/x-msdownload A31536000
  110. ExpiresByType image/gif A31536000
  111. ExpiresByType application/x-gzip A31536000
  112. ExpiresByType image/x-icon A31536000
  113. ExpiresByType image/jpeg A31536000
  114. ExpiresByType application/json A31536000
  115. ExpiresByType application/vnd.ms-access A31536000
  116. ExpiresByType audio/midi A31536000
  117. ExpiresByType video/quicktime A31536000
  118. ExpiresByType audio/mpeg A31536000
  119. ExpiresByType video/mp4 A31536000
  120. ExpiresByType video/mpeg A31536000
  121. ExpiresByType application/vnd.ms-project A31536000
  122. ExpiresByType application/x-font-otf A31536000
  123. ExpiresByType application/vnd.ms-opentype A31536000
  124. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  125. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  126. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  127. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  128. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  129. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  130. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  131. ExpiresByType audio/ogg A31536000
  132. ExpiresByType application/pdf A31536000
  133. ExpiresByType image/png A31536000
  134. ExpiresByType application/vnd.ms-powerpoint A31536000
  135. ExpiresByType audio/x-realaudio A31536000
  136. ExpiresByType image/svg+xml A31536000
  137. ExpiresByType application/x-shockwave-flash A31536000
  138. ExpiresByType application/x-tar A31536000
  139. ExpiresByType image/tiff A31536000
  140. ExpiresByType application/x-font-ttf A31536000
  141. ExpiresByType application/vnd.ms-opentype A31536000
  142. ExpiresByType audio/wav A31536000
  143. ExpiresByType audio/wma A31536000
  144. ExpiresByType application/vnd.ms-write A31536000
  145. ExpiresByType application/font-woff A31536000
  146. ExpiresByType application/vnd.ms-excel A31536000
  147. ExpiresByType application/zip A31536000
  148. </IfModule>
  149. <IfModule mod_deflate.c>
  150. <IfModule mod_headers.c>
  151. Header append Vary User-Agent env=!dont-vary
  152. </IfModule>
  153. <IfModule mod_filter.c>
  154. 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
  155. <IfModule mod_mime.c>
  156. # DEFLATE by extension
  157. AddOutputFilter DEFLATE js css htm html xml
  158. </IfModule>
  159. </IfModule>
  160. </IfModule>
  161. <FilesMatch "\.(css|htc|less|js|js2|js3|js4|CSS|HTC|LESS|JS|JS2|JS3|JS4)$">
  162. FileETag MTime Size
  163. <IfModule mod_headers.c>
  164. Header set Pragma "public"
  165. Header append Cache-Control "public"
  166. </IfModule>
  167. </FilesMatch>
  168. <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
  169. FileETag MTime Size
  170. <IfModule mod_headers.c>
  171. Header set Pragma "public"
  172. Header append Cache-Control "public"
  173. </IfModule>
  174. </FilesMatch>
  175. <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|woff|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|WOFF|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
  176. FileETag MTime Size
  177. <IfModule mod_headers.c>
  178. Header set Pragma "public"
  179. Header append Cache-Control "public"
  180. Header unset Set-Cookie
  181. </IfModule>
  182. </FilesMatch>
  183. # END W3TC Browser Cache
  184.  
  185. # BEGIN W3TC Page Cache core
  186. <IfModule mod_rewrite.c>
  187. RewriteEngine On
  188. RewriteBase /
  189. RewriteCond %{HTTP:Accept-Encoding} gzip
  190. RewriteRule .* - [E=W3TC_ENC:_gzip]
  191. RewriteCond %{HTTP_COOKIE} w3tc_preview [NC]
  192. RewriteRule .* - [E=W3TC_PREVIEW:_preview]
  193. RewriteCond %{REQUEST_METHOD} !=POST
  194. RewriteCond %{QUERY_STRING} =""
  195. RewriteCond %{REQUEST_URI} \/$
  196. RewriteCond %{HTTP_COOKIE} !(comment_author|wp\-postpass|w3tc_logged_out|wordpress_logged_in|wptouch_switch_toggle) [NC]
  197. RewriteCond "%{DOCUMENT_ROOT}/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" -f
  198. RewriteRule .* "/wp-content/cache/page_enhanced/%{HTTP_HOST}/%{REQUEST_URI}/_index%{ENV:W3TC_PREVIEW}.html%{ENV:W3TC_ENC}" [L]
  199. </IfModule>
  200. # END W3TC Page Cache core
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×