Advertisement
Guest User

htaccess file

a guest
Sep 2nd, 2011
3,189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.84 KB | None | 0 0
  1. # BEGIN W3TC Browser Cache
  2. <IfModule mod_mime.c>
  3. AddType text/css .css
  4. AddType application/x-javascript .js
  5. AddType text/x-component .htc
  6. AddType text/html .html .htm
  7. AddType text/richtext .rtf .rtx
  8. AddType image/svg+xml .svg .svgz
  9. AddType text/plain .txt
  10. AddType text/xsd .xsd
  11. AddType text/xsl .xsl
  12. AddType text/xml .xml
  13. AddType video/asf .asf .asx .wax .wmv .wmx
  14. AddType video/avi .avi
  15. AddType image/bmp .bmp
  16. AddType application/java .class
  17. AddType video/divx .divx
  18. AddType application/msword .doc .docx
  19. AddType application/vnd.ms-fontobject .eot
  20. AddType application/x-msdownload .exe
  21. AddType image/gif .gif
  22. AddType application/x-gzip .gz .gzip
  23. AddType image/x-icon .ico
  24. AddType image/jpeg .jpg .jpeg .jpe
  25. AddType application/vnd.ms-access .mdb
  26. AddType audio/midi .mid .midi
  27. AddType video/quicktime .mov .qt
  28. AddType audio/mpeg .mp3 .m4a
  29. AddType video/mp4 .mp4 .m4v
  30. AddType video/mpeg .mpeg .mpg .mpe
  31. AddType application/vnd.ms-project .mpp
  32. AddType application/x-font-otf .otf
  33. AddType application/vnd.oasis.opendocument.database .odb
  34. AddType application/vnd.oasis.opendocument.chart .odc
  35. AddType application/vnd.oasis.opendocument.formula .odf
  36. AddType application/vnd.oasis.opendocument.graphics .odg
  37. AddType application/vnd.oasis.opendocument.presentation .odp
  38. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  39. AddType application/vnd.oasis.opendocument.text .odt
  40. AddType audio/ogg .ogg
  41. AddType application/pdf .pdf
  42. AddType image/png .png
  43. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  44. AddType audio/x-realaudio .ra .ram
  45. AddType application/x-shockwave-flash .swf
  46. AddType application/x-tar .tar
  47. AddType image/tiff .tif .tiff
  48. AddType application/x-font-ttf .ttf .ttc
  49. AddType audio/wav .wav
  50. AddType audio/wma .wma
  51. AddType application/vnd.ms-write .wri
  52. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  53. AddType application/zip .zip
  54. </IfModule>
  55. <IfModule mod_expires.c>
  56. ExpiresActive On
  57. ExpiresByType text/css A31536000
  58. ExpiresByType application/x-javascript A31536000
  59. ExpiresByType text/x-component A31536000
  60. ExpiresByType text/html A3600
  61. ExpiresByType text/richtext A3600
  62. ExpiresByType image/svg+xml A3600
  63. ExpiresByType text/plain A3600
  64. ExpiresByType text/xsd A3600
  65. ExpiresByType text/xsl A3600
  66. ExpiresByType text/xml A3600
  67. ExpiresByType video/asf A31536000
  68. ExpiresByType video/avi A31536000
  69. ExpiresByType image/bmp A31536000
  70. ExpiresByType application/java A31536000
  71. ExpiresByType video/divx A31536000
  72. ExpiresByType application/msword A31536000
  73. ExpiresByType application/vnd.ms-fontobject A31536000
  74. ExpiresByType application/x-msdownload A31536000
  75. ExpiresByType image/gif A31536000
  76. ExpiresByType application/x-gzip A31536000
  77. ExpiresByType image/x-icon A31536000
  78. ExpiresByType image/jpeg A31536000
  79. ExpiresByType application/vnd.ms-access A31536000
  80. ExpiresByType audio/midi A31536000
  81. ExpiresByType video/quicktime A31536000
  82. ExpiresByType audio/mpeg A31536000
  83. ExpiresByType video/mp4 A31536000
  84. ExpiresByType video/mpeg A31536000
  85. ExpiresByType application/vnd.ms-project A31536000
  86. ExpiresByType application/x-font-otf A31536000
  87. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  88. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  89. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  90. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  91. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  92. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  93. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  94. ExpiresByType audio/ogg A31536000
  95. ExpiresByType application/pdf A31536000
  96. ExpiresByType image/png A31536000
  97. ExpiresByType application/vnd.ms-powerpoint A31536000
  98. ExpiresByType audio/x-realaudio A31536000
  99. ExpiresByType image/svg+xml A31536000
  100. ExpiresByType application/x-shockwave-flash A31536000
  101. ExpiresByType application/x-tar A31536000
  102. ExpiresByType image/tiff A31536000
  103. ExpiresByType application/x-font-ttf A31536000
  104. ExpiresByType audio/wav A31536000
  105. ExpiresByType audio/wma A31536000
  106. ExpiresByType application/vnd.ms-write A31536000
  107. ExpiresByType application/vnd.ms-excel A31536000
  108. ExpiresByType application/zip A31536000
  109. </IfModule>
  110. <IfModule mod_deflate.c>
  111. <IfModule mod_setenvif.c>
  112. BrowserMatch ^Mozilla/4 gzip-only-text/html
  113. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  114. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  115. BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
  116. </IfModule>
  117. <IfModule mod_headers.c>
  118. Header append Vary User-Agent env=!dont-vary
  119. </IfModule>
  120. <IfModule mod_filter.c>
  121. AddOutputFilterByType DEFLATE text/css application/x-javascript text/x-component text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
  122. </IfModule>
  123. </IfModule>
  124. <FilesMatch "\.(css|js|htc|CSS|JS|HTC)$">
  125. <IfModule mod_headers.c>
  126. Header set Pragma "public"
  127. Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  128. </IfModule>
  129. FileETag MTime Size
  130. <IfModule mod_headers.c>
  131. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  132. </IfModule>
  133. </FilesMatch>
  134. <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
  135. <IfModule mod_headers.c>
  136. Header set Pragma "public"
  137. Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  138. </IfModule>
  139. FileETag MTime Size
  140. <IfModule mod_headers.c>
  141. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  142. </IfModule>
  143. </FilesMatch>
  144. <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|eot|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|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|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)$">
  145. <IfModule mod_headers.c>
  146. Header set Pragma "public"
  147. Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  148. </IfModule>
  149. FileETag MTime Size
  150. <IfModule mod_headers.c>
  151. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  152. </IfModule>
  153. </FilesMatch>
  154. # END W3TC Browser Cache
  155. # BEGIN W3TC Page Cache core
  156. <IfModule mod_rewrite.c>
  157. RewriteEngine On
  158. RewriteBase /
  159. RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
  160. RewriteCond %{HTTP_USER_AGENT} (2\.0\ mmp|240x320|alcatel|amoi|asus|au\-mic|audiovox|avantgo|benq|bird|blackberry|blazer|cdm|cellphone|danger|ddipocket|docomo|dopod|elaine/3\.0|ericsson|eudoraweb|fly|haier|hiptop|hp\.ipaq|htc|huawei|i\-mobile|iemobile|j\-phone|kddi|konka|kwc|kyocera/wx310k|lenovo|lg|lg/u990|lge\ vx|midp|midp\-2\.0|mmef20|mmp|mobilephone|mot\-v|motorola|netfront|newgen|newt|nintendo\ ds|nintendo\ wii|nitro|nokia|novarra|o2|openweb|opera\ mobi|opera\.mobi|palm|panasonic|pantech|pdxgw|pg|philips|phone|playstation\ portable|portalmmm|\bppc\b|proxinet|psp|qtek|sagem|samsung|sanyo|sch|sec|sendo|sgh|sharp|sharp\-tq\-gx10|small|smartphone|softbank|sonyericsson|sph|symbian|symbian\ os|symbianos|toshiba|treo|ts21i\-10|up\.browser|up\.link|uts|vertu|vodafone|wap|willcome|windows\ ce|windows\.ce|winwap|xda|zte) [NC]
  161. RewriteRule .* - [E=W3TC_UA:_low]
  162. RewriteCond %{HTTP_USER_AGENT} (acer\ s100|android|archos5|blackberry9500|blackberry9530|blackberry9550|blackberry\ 9800|cupcake|docomo\ ht\-03a|dream|htc\ hero|htc\ magic|htc_dream|htc_magic|incognito|ipad|iphone|ipod|kindle|lg\-gw620|liquid\ build|maemo|mot\-mb200|mot\-mb300|nexus\ one|opera\ mini|samsung\-s8000|series60.*webkit|series60/5\.0|sonyericssone10|sonyericssonu20|sonyericssonx10|t\-mobile\ mytouch\ 3g|t\-mobile\ opal|tattoo|webmate|webos) [NC]
  163. RewriteRule .* - [E=W3TC_UA:_high]
  164. RewriteCond %{HTTP_COOKIE} w3tc_referrer=.*(google\.com|yahoo\.com|bing\.com|ask\.com|msn\.com) [NC]
  165. RewriteRule .* - [E=W3TC_REF:_search_engines]
  166. RewriteCond %{HTTPS} =on
  167. RewriteRule .* - [E=W3TC_SSL:_ssl]
  168. RewriteCond %{SERVER_PORT} =443
  169. RewriteRule .* - [E=W3TC_SSL:_ssl]
  170. RewriteCond %{HTTP:Accept-Encoding} gzip
  171. RewriteRule .* - [E=W3TC_ENC:_gzip]
  172. RewriteCond %{REQUEST_METHOD} !=POST
  173. RewriteCond %{QUERY_STRING} =""
  174. RewriteCond %{HTTP_HOST} =www.onepriceindia.co.in
  175. RewriteCond %{REQUEST_URI} \/$ [OR]
  176. RewriteCond %{REQUEST_URI} (sitemap\.xml(\.gz)?) [NC]
  177. RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  178. RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
  179. RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
  180. RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
  181. RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
  182. RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
  183. RewriteCond %{REQUEST_METHOD} !=POST
  184. RewriteCond %{QUERY_STRING} =""
  185. RewriteCond %{HTTP_HOST} =www.onepriceindia.co.in
  186. RewriteCond %{REQUEST_URI} \/$ [OR]
  187. RewriteCond %{REQUEST_URI} (sitemap\.xml(\.gz)?) [NC]
  188. RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  189. RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
  190. RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
  191. RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
  192. RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.xml%{ENV:W3TC_ENC}" -f
  193. RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.xml%{ENV:W3TC_ENC}" [L]
  194. </IfModule>
  195. # END W3TC Page Cache core
  196. # BEGIN WordPress
  197. <IfModule mod_rewrite.c>
  198. RewriteEngine On
  199. RewriteBase /
  200. RewriteRule ^index\.php$ - [L]
  201. RewriteCond %{REQUEST_FILENAME} !-f
  202. RewriteCond %{REQUEST_FILENAME} !-d
  203. RewriteRule . /index.php [L]
  204. </IfModule>
  205.  
  206. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement