Advertisement
Guest User

Untitled

a guest
Jan 14th, 2015
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.43 KB | None | 0 0
  1. # BEGIN WPSuperCache
  2. <IfModule mod_rewrite.c>
  3. RewriteEngine On
  4. RewriteBase /
  5. #If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible
  6. AddDefaultCharset UTF-8
  7. RewriteCond %{REQUEST_URI} !^.*[^/]$
  8. RewriteCond %{REQUEST_URI} !^.*//.*$
  9. RewriteCond %{REQUEST_METHOD} !POST
  10. RewriteCond %{QUERY_STRING} !.*=.*
  11. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  12. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  13. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  14. RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
  15. RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
  16. RewriteCond %{HTTP:Accept-Encoding} gzip
  17. RewriteCond %{HTTP} on
  18. RewriteCond /mnt/stor14-wc1-ord1/943245/www.realestateschoolchicago.com/web/content/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f
  19. RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz" [L]
  20.  
  21. RewriteCond %{REQUEST_URI} !^.*[^/]$
  22. RewriteCond %{REQUEST_URI} !^.*//.*$
  23. RewriteCond %{REQUEST_METHOD} !POST
  24. RewriteCond %{QUERY_STRING} !.*=.*
  25. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  26. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  27. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  28. RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
  29. RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
  30. RewriteCond %{HTTP:Accept-Encoding} gzip
  31. RewriteCond %{HTTP} !on
  32. RewriteCond /mnt/stor14-wc1-ord1/943245/www.realestateschoolchicago.com/web/content/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f
  33. RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L]
  34.  
  35. RewriteCond %{REQUEST_URI} !^.*[^/]$
  36. RewriteCond %{REQUEST_URI} !^.*//.*$
  37. RewriteCond %{REQUEST_METHOD} !POST
  38. RewriteCond %{QUERY_STRING} !.*=.*
  39. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  40. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  41. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  42. RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
  43. RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
  44. RewriteCond %{HTTP} on
  45. RewriteCond /mnt/stor14-wc1-ord1/943245/www.realestateschoolchicago.com/web/content/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html -f
  46. RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html" [L]
  47.  
  48. RewriteCond %{REQUEST_URI} !^.*[^/]$
  49. RewriteCond %{REQUEST_URI} !^.*//.*$
  50. RewriteCond %{REQUEST_METHOD} !POST
  51. RewriteCond %{QUERY_STRING} !.*=.*
  52. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  53. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  54. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  55. RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
  56. RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
  57. RewriteCond %{HTTP} !on
  58. RewriteCond /mnt/stor14-wc1-ord1/943245/www.realestateschoolchicago.com/web/content/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -f
  59. RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html" [L]
  60. </IfModule>
  61.  
  62. # END WPSuperCache
  63.  
  64.  
  65. # WP REWRITE LOOP END
  66.  
  67. # DENY BROWSER ACCESS TO THESE FILES
  68. # wp-config.php, bb-config.php, php.ini, php5.ini, readme.html
  69. # Replace Allow from 88.77.66.55 with your current IP address and remove the
  70. # pound sign # from in front of the Allow from line of code below to access these
  71. # files directly from your browser.
  72.  
  73. <FilesMatch "^(wp-config\.php|php\.ini|php5\.ini|readme\.html|bb-config\.php)">
  74. Order allow,deny
  75. Deny from all
  76. #Allow from 88.77.66.55
  77. </FilesMatch>
  78.  
  79. # IMPORTANT!!! DO NOT DELETE!!! the END WordPress text below
  80. # END WordPress
  81. # BEGIN WordPress
  82. <IfModule mod_rewrite.c>
  83. RewriteRule ^index\.php$ - [L]
  84. RewriteCond %{REQUEST_FILENAME} !-f
  85. RewriteCond %{REQUEST_FILENAME} !-d
  86. RewriteRule . /index.php [L]
  87. </IfModule>
  88.  
  89. <IfModule mod_rewrite.c>
  90. RewriteRule ^index\.php$ - [L]
  91. RewriteCond %{REQUEST_FILENAME} !-f
  92. RewriteCond %{REQUEST_FILENAME} !-d
  93. RewriteRule . /index.php [L]
  94. </IfModule>
  95.  
  96. <IfModule mod_rewrite.c>
  97. RewriteRule ^index\.php$ - [L]
  98. RewriteCond %{REQUEST_FILENAME} !-f
  99. RewriteCond %{REQUEST_FILENAME} !-d
  100. RewriteRule . /index.php [L]
  101. </IfModule>
  102.  
  103. <IfModule mod_rewrite.c>
  104. RewriteRule ^index\.php$ - [L]
  105. RewriteCond %{REQUEST_FILENAME} !-f
  106. RewriteCond %{REQUEST_FILENAME} !-d
  107. RewriteRule . /index.php [L]
  108. </IfModule>
  109.  
  110. <IfModule mod_rewrite.c>
  111. RewriteRule ^index\.php$ - [L]
  112. RewriteCond %{REQUEST_FILENAME} !-f
  113. RewriteCond %{REQUEST_FILENAME} !-d
  114. RewriteRule . /index.php [L]
  115. </IfModule>
  116.  
  117. # END WordPress
  118.  
  119. # FORBID COMMENT SPAMMERS ACCESS TO YOUR wp-comments-post.php FILE
  120. # This is a better approach to blocking Comment Spammers so that you do not
  121. # accidentally block good traffic to your website. You can add additional
  122. # Comment Spammer IP addresses on a case by case basis below.
  123. # Searchable Database of known Comment Spammers http://www.stopforumspam.com/
  124.  
  125. # BLOCK MORE BAD BOTS RIPPERS AND OFFLINE BROWSERS
  126. # If you would like to block more bad bots you can get a blacklist from
  127. # http://perishablepress.com/press/2007/06/28/ultimate-htaccess-blacklist/
  128. # You should monitor your site very closely for at least a week if you add a bad bots list
  129. # to see if any website traffic problems or other problems occur.
  130.  
  131. #--Uses mod_deflate for sending compressed requests--#
  132.  
  133.  
  134. SetOutputFilter DEFLATE
  135.  
  136. #--Don't compress these
  137. SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
  138. Header append Vary User-Agent env=!dont-vary
  139.  
  140. #--compresses static files--#
  141. AddOutputFilterByType DEFLATE text/plain
  142. AddOutputFilterByType DEFLATE text/html
  143. AddOutputFilterByType DEFLATE text/xml
  144. AddOutputFilterByType DEFLATE text/css
  145. AddOutputFilterByType DEFLATE application/xml
  146. AddOutputFilterByType DEFLATE application/xhtml+xml
  147. AddOutputFilterByType DEFLATE application/rss+xml
  148. AddOutputFilterByType DEFLATE application/javascript
  149. AddOutputFilterByType DEFLATE application/x-javascript
  150. AddOutputFilterByType DEFLATE font/opentype font/truetype font/eot
  151.  
  152. ExpiresActive on
  153. ExpiresByType image/jpeg A604800
  154. ExpiresByType image/gif A604800
  155. ExpiresByType image/png A604800
  156. ExpiresByType application/x-shockwave-flash A604800
  157. ExpiresByType audio/mpeg A604800
  158. ExpiresByType text/x-javascript A604800
  159. ExpiresByType image/x-icon A604800
  160. ExpiresByType text/css A604800
  161. ExpiresByType font/eot A604800
  162. ExpiresByType font/ttf A604800
  163. ExpiresByType text/javascript A604800
  164. ExpiresByType text/html A604800
  165. ExpiresByType text/xml A604800
  166. ExpiresByType application/x-javascript A604800
  167.  
  168.  
  169. #--Add some common file types
  170. #--A complete list can be viewed here: http://www.htaccess-guide.com/adding-mime-types/
  171. Addtype font/eot .eot
  172. Addtype font/truetype .ttf
  173. AddType image/svg+xml .svg .svgz
  174. AddType image/x-icon .ico
  175. AddType application/x-shockwave-flash .swf
  176. AddType video/mpeg .mpeg .mpg .mpe
  177. AddType video/quicktime .qt .mov
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement