Advertisement
Guest User

htaccessMB

a guest
Feb 24th, 2012
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.57 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. RewriteCond %{REQUEST_METHOD} !POST
  7. RewriteCond %{QUERY_STRING} !.*=.*
  8. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  9. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  10. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  11. 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]
  12. 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]
  13. RewriteCond %{HTTP:Accept-Encoding} gzip
  14. RewriteCond %{HTTPS} on
  15. RewriteCond %{DOCUMENT_ROOT}/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz -f
  16. RewriteRule ^(.*) "/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz" [L]
  17.  
  18. RewriteCond %{REQUEST_METHOD} !POST
  19. RewriteCond %{QUERY_STRING} !.*=.*
  20. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  21. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  22. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  23. 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]
  24. 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]
  25. RewriteCond %{HTTP:Accept-Encoding} gzip
  26. RewriteCond %{HTTPS} !on
  27. RewriteCond %{DOCUMENT_ROOT}/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
  28. RewriteRule ^(.*) "/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]
  29.  
  30. RewriteCond %{REQUEST_METHOD} !POST
  31. RewriteCond %{QUERY_STRING} !.*=.*
  32. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  33. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  34. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  35. 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]
  36. 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]
  37. RewriteCond %{HTTPS} on
  38. RewriteCond %{DOCUMENT_ROOT}/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html -f
  39. RewriteRule ^(.*) "/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html" [L]
  40.  
  41. RewriteCond %{REQUEST_METHOD} !POST
  42. RewriteCond %{QUERY_STRING} !.*=.*
  43. RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
  44. RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
  45. RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
  46. 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]
  47. 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]
  48. RewriteCond %{HTTPS} !on
  49. RewriteCond %{DOCUMENT_ROOT}/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
  50. RewriteRule ^(.*) "/home/content/37/8678537/html/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]
  51. </IfModule>
  52.  
  53. # END WPSuperCache
  54.  
  55.  
  56.  
  57. # BEGIN WordPress
  58. <IfModule mod_rewrite.c>
  59. RewriteRule ^index\.php$ - [L]
  60. RewriteCond %{REQUEST_FILENAME} !-f
  61. RewriteCond %{REQUEST_FILENAME} !-d
  62. RewriteRule . /index.php [L]
  63. </IfModule>
  64.  
  65. # END WordPress
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement