This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

htaccess

By: josephdowdy on Jun 28th, 2011  |  syntax: None  |  size: 11.04 KB  |  views: 246  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. # BEGIN WordPress
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4.  
  5. Redirect 301 http://pelvicpainhelp.com/physical_therapy.php http://pelvicpainhelp.com/treatment/physical-therapy-wise-anderson-protocol/
  6. Redirect 301 http://pelvicpainhelp.com/perineal_pain_pain_in_the_perineum.php http://pelvicpainhelp.com/symptoms/perineal-pain-pain-in-the-perineum/
  7. Redirect 301 http://pelvicpainhelp.com/excerpts.php http://pelvicpainhelp.com/books/excerpt-from-a-headache-in-the-pelvis/
  8. Redirect 301 http://pelvicpainhelp.com/levator_ani_syndrome_levator_ani_spasm.php http://pelvicpainhelp.com/books/excerpt-from-a-headache-in-the-pelvis/
  9. Redirect 301 http://pelvicpainhelp.com/essays.php http://pelvicpainhelp.com/stanford-protocol-and-wise-anderson-protocol/essays-on-pelvic-pain/
  10. Redirect 301 http://pelvicpainhelp.com/prostatitis.php http://pelvicpainhelp.com/symptoms/prostatitis/
  11. Redirect 301 http://pelvicpainhelp.com/paradoxical.php http://pelvicpainhelp.com/stanford-protocol-and-wise-anderson-protocol/the-techniques-of-the-wise-anderson-protocol-paradoxical-relaxation/
  12. Redirect 301 http://pelvicpainhelp.com/schedule.php http://pelvicpainhelp.com/schedule/2011-schedule-of-clinics/
  13. Redirect 301 http://pelvicpainhelp.com/pelvic_video.php http://pelvicpainhelp.com/video/videos/
  14.  
  15. RewriteRule ^index\.php$ - [L]
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. RewriteRule . /index.php [L]
  19.  
  20.  
  21. </IfModule>
  22.  
  23. <FilesMatch "\.(flv|gif|jpg|jpeg|png|ico)$">
  24.    Header set Cache-Control "max-age=2592000"
  25. </FilesMatch>
  26. <FilesMatch "\.(js|css|pdf|swf)$">
  27.    Header set Cache-Control "max-age=10800"
  28. </FilesMatch>
  29. <FilesMatch "\.(html|htm|txt)$">
  30.    Header set Cache-Control "max-age=10800"
  31. </FilesMatch>
  32. <FilesMatch "\.(pl|php|cgi|spl|scgi|fcgi)$">
  33.    Header set Cache-Control "max-age=10800"
  34. </FilesMatch>
  35.  
  36. AddHandler php-cgi .php
  37. Action php-cgi /cgi-bin/php5
  38.  
  39. # BEGIN W3TC Browser Cache
  40. <IfModule mod_mime.c>
  41.     AddType text/css .css
  42.     AddType application/x-javascript .js
  43.     AddType text/html .html .htm
  44.     AddType text/richtext .rtf .rtx
  45.     AddType image/svg+xml .svg .svgz
  46.     AddType text/plain .txt
  47.     AddType text/xsd .xsd
  48.     AddType text/xsl .xsl
  49.     AddType text/xml .xml
  50.     AddType video/asf .asf .asx .wax .wmv .wmx
  51.     AddType video/avi .avi
  52.     AddType image/bmp .bmp
  53.     AddType application/java .class
  54.     AddType video/divx .divx
  55.     AddType application/msword .doc .docx
  56.     AddType application/x-msdownload .exe
  57.     AddType image/gif .gif
  58.     AddType application/x-gzip .gz .gzip
  59.     AddType image/x-icon .ico
  60.     AddType image/jpeg .jpg .jpeg .jpe
  61.     AddType application/vnd.ms-access .mdb
  62.     AddType audio/midi .mid .midi
  63.     AddType video/quicktime .mov .qt
  64.     AddType audio/mpeg .mp3 .m4a
  65.     AddType video/mp4 .mp4 .m4v
  66.     AddType video/mpeg .mpeg .mpg .mpe
  67.     AddType application/vnd.ms-project .mpp
  68.     AddType application/vnd.oasis.opendocument.database .odb
  69.     AddType application/vnd.oasis.opendocument.chart .odc
  70.     AddType application/vnd.oasis.opendocument.formula .odf
  71.     AddType application/vnd.oasis.opendocument.graphics .odg
  72.     AddType application/vnd.oasis.opendocument.presentation .odp
  73.     AddType application/vnd.oasis.opendocument.spreadsheet .ods
  74.     AddType application/vnd.oasis.opendocument.text .odt
  75.     AddType audio/ogg .ogg
  76.     AddType application/pdf .pdf
  77.     AddType image/png .png
  78.     AddType application/vnd.ms-powerpoint .pot .pps .ppt .pptx
  79.     AddType audio/x-realaudio .ra .ram
  80.     AddType application/x-shockwave-flash .swf
  81.     AddType application/x-tar .tar
  82.     AddType image/tiff .tif .tiff
  83.     AddType audio/wav .wav
  84.     AddType audio/wma .wma
  85.     AddType application/vnd.ms-write .wri
  86.     AddType application/vnd.ms-excel .xla .xls .xlsx .xlt .xlw
  87.     AddType application/zip .zip
  88. </IfModule>
  89. <IfModule mod_expires.c>
  90.     ExpiresActive On
  91.     ExpiresByType text/css A31536000
  92.     ExpiresByType application/x-javascript A31536000
  93.     ExpiresByType text/html A3600
  94.     ExpiresByType text/richtext A3600
  95.     ExpiresByType image/svg+xml A3600
  96.     ExpiresByType text/plain A3600
  97.     ExpiresByType text/xsd A3600
  98.     ExpiresByType text/xsl A3600
  99.     ExpiresByType text/xml A3600
  100.     ExpiresByType video/asf A31536000
  101.     ExpiresByType video/avi A31536000
  102.     ExpiresByType image/bmp A31536000
  103.     ExpiresByType application/java A31536000
  104.     ExpiresByType video/divx A31536000
  105.     ExpiresByType application/msword A31536000
  106.     ExpiresByType application/x-msdownload A31536000
  107.     ExpiresByType image/gif A31536000
  108.     ExpiresByType application/x-gzip A31536000
  109.     ExpiresByType image/x-icon A31536000
  110.     ExpiresByType image/jpeg A31536000
  111.     ExpiresByType application/vnd.ms-access A31536000
  112.     ExpiresByType audio/midi A31536000
  113.     ExpiresByType video/quicktime A31536000
  114.     ExpiresByType audio/mpeg A31536000
  115.     ExpiresByType video/mp4 A31536000
  116.     ExpiresByType video/mpeg A31536000
  117.     ExpiresByType application/vnd.ms-project A31536000
  118.     ExpiresByType application/vnd.oasis.opendocument.database A31536000
  119.     ExpiresByType application/vnd.oasis.opendocument.chart A31536000
  120.     ExpiresByType application/vnd.oasis.opendocument.formula A31536000
  121.     ExpiresByType application/vnd.oasis.opendocument.graphics A31536000
  122.     ExpiresByType application/vnd.oasis.opendocument.presentation A31536000
  123.     ExpiresByType application/vnd.oasis.opendocument.spreadsheet A31536000
  124.     ExpiresByType application/vnd.oasis.opendocument.text A31536000
  125.     ExpiresByType audio/ogg A31536000
  126.     ExpiresByType application/pdf A31536000
  127.     ExpiresByType image/png A31536000
  128.     ExpiresByType application/vnd.ms-powerpoint A31536000
  129.     ExpiresByType audio/x-realaudio A31536000
  130.     ExpiresByType application/x-shockwave-flash A31536000
  131.     ExpiresByType application/x-tar A31536000
  132.     ExpiresByType image/tiff A31536000
  133.     ExpiresByType audio/wav A31536000
  134.     ExpiresByType audio/wma A31536000
  135.     ExpiresByType application/vnd.ms-write A31536000
  136.     ExpiresByType application/vnd.ms-excel A31536000
  137.     ExpiresByType application/zip A31536000
  138. </IfModule>
  139. <IfModule mod_deflate.c>
  140.     <IfModule mod_setenvif.c>
  141.         BrowserMatch ^Mozilla/4 gzip-only-text/html
  142.         BrowserMatch ^Mozilla/4\.0[678] no-gzip
  143.         BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  144.         BrowserMatch \bMSI[E] !no-gzip !gzip-only-text/html
  145.     </IfModule>
  146.     <IfModule mod_headers.c>
  147.         Header append Vary User-Agent env=!dont-vary
  148.     </IfModule>
  149.     <IfModule mod_filter.c>
  150.         AddOutputFilterByType DEFLATE text/css application/x-javascript text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon
  151.     </IfModule>
  152. </IfModule>
  153. <FilesMatch "\.(css|js|CSS|JS)$">
  154.     <IfModule mod_headers.c>
  155.         Header set Pragma "public"
  156.         Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  157.     </IfModule>
  158.     FileETag MTime Size
  159.     <IfModule mod_headers.c>
  160.          Header set X-Powered-By "W3 Total Cache/0.9.2.3"
  161.     </IfModule>
  162. </FilesMatch>
  163. <FilesMatch "\.(html|htm|rtf|rtx|svg|svgz|txt|xsd|xsl|xml|HTML|HTM|RTF|RTX|SVG|SVGZ|TXT|XSD|XSL|XML)$">
  164.     <IfModule mod_headers.c>
  165.         Header set Pragma "public"
  166.         Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  167.     </IfModule>
  168.     FileETag MTime Size
  169.     <IfModule mod_headers.c>
  170.          Header set X-Powered-By "W3 Total Cache/0.9.2.3"
  171.     </IfModule>
  172. </FilesMatch>
  173. <FilesMatch "\.(asf|asx|wax|wmv|wmx|avi|bmp|class|divx|doc|docx|exe|gif|gz|gzip|ico|jpg|jpeg|jpe|mdb|mid|midi|mov|qt|mp3|m4a|mp4|m4v|mpeg|mpg|mpe|mpp|odb|odc|odf|odg|odp|ods|odt|ogg|pdf|png|pot|pps|ppt|pptx|ra|ram|swf|tar|tif|tiff|wav|wma|wri|xla|xls|xlsx|xlt|xlw|zip|ASF|ASX|WAX|WMV|WMX|AVI|BMP|CLASS|DIVX|DOC|DOCX|EXE|GIF|GZ|GZIP|ICO|JPG|JPEG|JPE|MDB|MID|MIDI|MOV|QT|MP3|M4A|MP4|M4V|MPEG|MPG|MPE|MPP|ODB|ODC|ODF|ODG|ODP|ODS|ODT|OGG|PDF|PNG|POT|PPS|PPT|PPTX|RA|RAM|SWF|TAR|TIF|TIFF|WAV|WMA|WRI|XLA|XLS|XLSX|XLT|XLW|ZIP)$">
  174.     <IfModule mod_headers.c>
  175.         Header set Pragma "public"
  176.         Header append Cache-Control "public, must-revalidate, proxy-revalidate"
  177.     </IfModule>
  178.     FileETag MTime Size
  179.     <IfModule mod_headers.c>
  180.          Header set X-Powered-By "W3 Total Cache/0.9.2.3"
  181.     </IfModule>
  182. </FilesMatch>
  183. # END W3TC Browser Cache
  184.  
  185.  
  186. # BEGIN W3TC Page Cache core
  187. <IfModule mod_rewrite.c>
  188.     RewriteEngine On
  189.     RewriteBase /
  190.     RewriteRule ^(.*\/)?w3tc_rewrite_test$ $1?w3tc_rewrite_test=1 [L]
  191.     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]
  192.     RewriteRule .* - [E=W3TC_UA:_low]
  193.     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]
  194.     RewriteRule .* - [E=W3TC_UA:_high]
  195.     RewriteCond %{HTTP_COOKIE} w3tc_referrer=.*(google\.com|yahoo\.com|bing\.com|ask\.com|msn\.com) [NC]
  196.     RewriteRule .* - [E=W3TC_REF:_search_engines]
  197.     RewriteCond %{HTTPS} =on
  198.     RewriteRule .* - [E=W3TC_SSL:_ssl]
  199.     RewriteCond %{SERVER_PORT} =443
  200.     RewriteRule .* - [E=W3TC_SSL:_ssl]
  201.     RewriteCond %{HTTP:Accept-Encoding} gzip
  202.     RewriteRule .* - [E=W3TC_ENC:.gzip]
  203.     RewriteCond %{REQUEST_METHOD} !=POST
  204.     RewriteCond %{QUERY_STRING} =""
  205.     RewriteCond %{REQUEST_URI} \/$ [OR]
  206.     RewriteCond %{REQUEST_URI} (sitemap\.xml(\.gz)?) [NC]
  207.     RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register|mail)\.php|wp-.*\.php|index\.php) [NC,OR]
  208.     RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
  209.     RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
  210.     RewriteCond %{HTTP_USER_AGENT} !(W3\ Total\ Cache/0\.9\.2\.3) [NC]
  211.     RewriteCond "%{DOCUMENT_ROOT}/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" -f
  212.     RewriteRule .* "/wp-content/w3tc/pgcache/%{REQUEST_URI}/_index%{ENV:W3TC_UA}%{ENV:W3TC_REF}%{ENV:W3TC_SSL}.html%{ENV:W3TC_ENC}" [L]
  213. </IfModule>
  214. # END W3TC Page Cache core
  215.  
  216.  
  217. # END WordPress
clone this paste RAW Paste Data