Advertisement
Guest User

htaccess

a guest
May 21st, 2012
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.74 KB | None | 0 0
  1. RewriteEngine on
  2. RewriteCond %{HTTP_HOST} ^.*$
  3. RewriteRule ^news\-feed\/$ "http\:\/\/kidsfashionpassion\.com\/latest\-news\/" [R=301,L]
  4.  
  5.  
  6. RewriteCond %{HTTP_HOST} ^.*$
  7. RewriteRule ^blog\/$ "http\:\/\/kidsfashionpassion\.com\/latest\-news\/" [R=301,L]
  8.  
  9. # Use PHP5 Single php.ini as default
  10. AddHandler application/x-httpd-php5s .php
  11.  
  12. # BEGIN W3TC Browser Cache
  13. <IfModule mod_mime.c>
  14. AddType text/css .css
  15. AddType application/x-javascript .js
  16. AddType text/x-component .htc
  17. AddType text/html .html .htm
  18. AddType text/richtext .rtf .rtx
  19. AddType image/svg+xml .svg .svgz
  20. AddType text/plain .txt
  21. AddType text/xsd .xsd
  22. AddType text/xsl .xsl
  23. AddType text/xml .xml
  24. AddType video/asf .asf .asx .wax .wmv .wmx
  25. AddType video/avi .avi
  26. AddType image/bmp .bmp
  27. AddType application/java .class
  28. AddType video/divx .divx
  29. AddType application/msword .doc .docx
  30. AddType application/vnd.ms-fontobject .eot
  31. AddType application/x-msdownload .exe
  32. AddType image/gif .gif
  33. AddType application/x-gzip .gz .gzip
  34. AddType image/x-icon .ico
  35. AddType image/jpeg .jpg .jpeg .jpe
  36. AddType application/vnd.ms-access .mdb
  37. AddType audio/midi .mid .midi
  38. AddType video/quicktime .mov .qt
  39. AddType audio/mpeg .mp3 .m4a
  40. AddType video/mp4 .mp4 .m4v
  41. AddType video/mpeg .mpeg .mpg .mpe
  42. AddType application/vnd.ms-project .mpp
  43. AddType application/x-font-otf .otf
  44. AddType application/vnd.oasis.opendocument.database .odb
  45. AddType application/vnd.oasis.opendocument.chart .odc
  46. AddType application/vnd.oasis.opendocument.formula .odf
  47. AddType application/vnd.oasis.opendocument.graphics .odg
  48. AddType application/vnd.oasis.opendocument.presentation .odp
  49. AddType application/vnd.oasis.opendocument.spreadsheet .ods
  50. AddType application/vnd.oasis.opendocument.text .odt
  51. AddType audio/ogg .ogg
  52. AddType application/pdf .pdf
  53. AddType image/png .png
  54. AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  55. AddType audio/x-realaudio .ra .ram
  56. AddType application/x-shockwave-flash .swf
  57. AddType application/x-tar .tar
  58. AddType image/tiff .tif .tiff
  59. AddType application/x-font-ttf .ttf .ttc
  60. AddType audio/wav .wav
  61. AddType audio/wma .wma
  62. AddType application/vnd.ms-write .wri
  63. AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  64. AddType application/zip .zip
  65. </IfModule>
  66. <IfModule mod_expires.c>
  67. ExpiresActive On
  68. ExpiresByType text/css A31536000
  69. ExpiresByType application/x-javascript A31536000
  70. ExpiresByType text/x-component A31536000
  71. ExpiresByType text/html A3600
  72. ExpiresByType text/richtext A3600
  73. ExpiresByType image/svg+xml A3600
  74. ExpiresByType text/plain A3600
  75. ExpiresByType text/xsd A3600
  76. ExpiresByType text/xsl A3600
  77. ExpiresByType text/xml A3600
  78. ExpiresByType video/asf A31536000
  79. ExpiresByType video/avi A31536000
  80. ExpiresByType image/bmp A31536000
  81. ExpiresByType application/java A31536000
  82. ExpiresByType video/divx A31536000
  83. ExpiresByType application/msword A31536000
  84. ExpiresByType application/vnd.ms-fontobject A31536000
  85. ExpiresByType application/x-msdownload A31536000
  86. ExpiresByType image/gif A31536000
  87. ExpiresByType application/x-gzip A31536000
  88. ExpiresByType image/x-icon A31536000
  89. ExpiresByType image/jpeg A31536000
  90. ExpiresByType application/vnd.ms-access A31536000
  91. ExpiresByType audio/midi A31536000
  92. ExpiresByType video/quicktime A31536000
  93. ExpiresByType audio/mpeg A31536000
  94. ExpiresByType video/mp4 A31536000
  95. ExpiresByType video/mpeg A31536000
  96. ExpiresByType application/vnd.ms-project A31536000
  97. ExpiresByType application/x-font-otf A31536000
  98. ExpiresByType application/vnd.oasis.opendocument.database A31536000
  99. ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  100. ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  101. ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  102. ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  103. ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  104. ExpiresByType application/vnd.oasis.opendocument.text A31536000
  105. ExpiresByType audio/ogg A31536000
  106. ExpiresByType application/pdf A31536000
  107. ExpiresByType image/png A31536000
  108. ExpiresByType application/vnd.ms-powerpoint A31536000
  109. ExpiresByType audio/x-realaudio A31536000
  110. ExpiresByType image/svg+xml A31536000
  111. ExpiresByType application/x-shockwave-flash A31536000
  112. ExpiresByType application/x-tar A31536000
  113. ExpiresByType image/tiff A31536000
  114. ExpiresByType application/x-font-ttf A31536000
  115. ExpiresByType audio/wav A31536000
  116. ExpiresByType audio/wma A31536000
  117. ExpiresByType application/vnd.ms-write A31536000
  118. ExpiresByType application/vnd.ms-excel A31536000
  119. ExpiresByType application/zip A31536000
  120. </IfModule>
  121. <IfModule mod_deflate.c>
  122. <IfModule mod_setenvif.c>
  123. BrowserMatch ^Mozilla/4 gzip-only-text/html
  124. BrowserMatch ^Mozilla/4\.0[678] no-gzip
  125. BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  126. BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
  127. </IfModule>
  128. <IfModule mod_headers.c>
  129. Header append Vary User-Agent env=!dont-vary
  130. </IfModule>
  131. <IfModule mod_filter.c>
  132. 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
  133. </IfModule>
  134. </IfModule>
  135. <FilesMatch "\.(css|js|htc|CSS|JS|HTC)$">
  136. <IfModule mod_headers.c>
  137. Header set Pragma "public"
  138. Header set Cache-Control "public, must-revalidate, proxy-revalidate"
  139. </IfModule>
  140. FileETag None
  141. <IfModule mod_headers.c>
  142. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  143. </IfModule>
  144. </FilesMatch>
  145. <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
  146. <IfModule mod_headers.c>
  147. Header set Pragma "public"
  148. Header set Cache-Control "public, must-revalidate, proxy-revalidate"
  149. </IfModule>
  150. FileETag None
  151. <IfModule mod_headers.c>
  152. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  153. </IfModule>
  154. </FilesMatch>
  155. <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)$">
  156. <IfModule mod_headers.c>
  157. Header set Pragma "public"
  158. Header set Cache-Control "public, must-revalidate, proxy-revalidate"
  159. </IfModule>
  160. FileETag None
  161. <IfModule mod_headers.c>
  162. Header set X-Powered-By "W3 Total Cache/0.9.2.4"
  163. </IfModule>
  164. </FilesMatch>
  165. # END W3TC Browser Cache
  166. # BEGIN W3TC Page Cache core
  167. <IfModule mod_rewrite.c>
  168. RewriteEngine On
  169. RewriteBase /
  170. RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
  171. RewriteCond %{HTTPS} =on
  172. RewriteRule .* - [E=W3TC_SSL:_ssl]
  173. RewriteCond %{SERVER_PORT} =443
  174. RewriteRule .* - [E=W3TC_SSL:_ssl]
  175. RewriteCond %{HTTP:Accept-Encoding} gzip
  176. RewriteRule .* - [E=W3TC_ENC:_gzip]
  177. RewriteCond %{REQUEST_METHOD} !=POST
  178. RewriteCond %{QUERY_STRING} =""
  179. RewriteCond %{HTTP_HOST} =kidsfashionpassion.com
  180. RewriteCond %{REQUEST_URI} \/$ [OR]
  181. RewriteCond %{REQUEST_URI} (sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?) [NC]
  182. RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  183. RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
  184. RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
  185. RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
  186. RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
  187. RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
  188. RewriteCond %{REQUEST_METHOD} !=POST
  189. RewriteCond %{QUERY_STRING} =""
  190. RewriteCond %{HTTP_HOST} =kidsfashionpassion.com
  191. RewriteCond %{REQUEST_URI} \/$ [OR]
  192. RewriteCond %{REQUEST_URI} (sitemap(_index)?\.xml(\.gz)?|[a-z0-9_\-]+-sitemap([0-9]+)?\.xml(\.gz)?) [NC]
  193. RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  194. RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
  195. RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
  196. RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.4) [NC]
  197. RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.xml%{ENV:W3TC_ENC}" -f
  198. RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.xml%{ENV:W3TC_ENC}" [L]
  199. </IfModule>
  200. # END W3TC Page Cache core
  201. # BEGIN WordPress
  202. <IfModule mod_rewrite.c>
  203. RewriteEngine On
  204. RewriteBase /
  205. RewriteRule ^index\.php$ - [L]
  206. RewriteCond %{REQUEST_FILENAME} !-f
  207. RewriteCond %{REQUEST_FILENAME} !-d
  208. RewriteRule . /index.php [L]
  209. </IfModule>
  210.  
  211. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement