Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 14th Apr 2012, 04:00 PM   #1
HyperActive Warrior
War Room Member
 
tsgeric's Avatar
 
Join Date: 2010
Location: Bellevue, WA
Posts: 243
Thanks: 67
Thanked 28 Times in 27 Posts
Default
need help with SP supercache plugin
Share on: 
fb share twitter share gplus share more share

Edit: Sorry, title is misspelled, I mean WP Super Cache.

I have recently installed WP Super Cache on some sites of mine.

There is an option in there to do the caching with Mod_rewrite as opposed to PHP. (And this is where my subject matter knowledge drops off precipitously...)

If you choose mod_rewrite, it offers to update your whole .htaccess.

With all the new stuff in this .htaccess file, once in a while when I go to the site it only shows a bunch of gibberish on the front page and nothing else.

The link to login as a WP admin still works, though, and once I log in, the site goes back to normal.

Does anybody know what is going on, or how to fix it? Presumably it's in conflict with something else?

If it's possible, I would like to keep this plugin. It certainly makes a difference in the loading time of my site.

Thanks!


Last edited on 14th Apr 2012 at 04:01 PM. Reason: tried to correct title.
tsgeric is offline  
Unread 14th Apr 2012, 04:12 PM   #2
www.veerotech.net
War Room Member
 
Kingfish85's Avatar
 
Join Date: 2011
Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2
Default
Re: need help with SP supercache plugin
Share on: 
fb share twitter share gplus share more share

Use PHP. Also, if your webhost uses CloudFlare - I'd suggest using it.

Would you mind posting what you see on the page when the problem occurs? Without knowing what's in the .htaccess file it's hard to troubleshoot...

|~| VeeroTech Hosting - sales @ veerotech.net
|~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
|~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
|~| Visit us @veerotech Facebook - Twitter - LinkedIn
Kingfish85 is offline  
Unread 14th Apr 2012, 04:46 PM   #3
HyperActive Warrior
War Room Member
 
tsgeric's Avatar
 
Join Date: 2010
Location: Bellevue, WA
Posts: 243
Thanks: 67
Thanked 28 Times in 27 Posts
Default
Re: need help with SP supercache plugin
Share on: 
fb share twitter share gplus share more share

What the plugin adds to the original .htaccess file is:
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTProfile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cell phone|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]
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]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{HTTPS} on
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz" [L]

RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTProfile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cell phone|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]
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]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{HTTPS} !on
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]

RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTProfile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cell phone|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]
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]
RewriteCond %{HTTPS} on
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html" [L]

RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTProfile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cell phone|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]
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]
RewriteCond %{HTTPS} !on
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) "/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]
</IfModule>

# END WPSuperCache
and what's on the page is about a page's worth of this: ...
‹í=ínÛÆ–¿m ï0Upët¯)Z’í8þ*'mÒ¦‰;7·h cDŽÄ‰)Ë!-«¹úûgØöYöQú${Î~J”L:IoÛ½FKäÌâ„ ¢3çûÌç᧏^œœwú˜yñÄg§¯>{zÂ:–m¿ œØö£óGìïOο}ÆzÝ-vñ@ËXª€û¶ýøy‡u¼8÷m{:v§ƒ®ŠÆö ùKûaõ°rúÑŠK5»nìvŽ?Y?¤¯'~ jàôîß¿oªw˜+££ŽGæó`|ԁõêÌÀà œea¤FÒ9”ñ$ŒëQ`÷zTp"bÎð½%~LäÕQçD ±bë|ŠsÌ·£N,®c[=`ŽÇ#-â£Wç_Z{f#˜Xƾ8þ&qDtÉÙ?Ø©§b5ŽxèÍØÂ ¹ 5だt’Î¥f#±‡b,ƒ@DúÐ6U?Y(¾ .Y$ü£ŽŽg¾Ðžq‡y‘å}¸4Mte0Rö4´RíØ ¡í×J¹"°©z×ѺÃbèGŠ>}ŸWrhÀ‰„Rà ¬?µ¬ïåˆ=}Ìîýp¼öÉúÚL–Àâ¾+,¥(á iù^®ý`Y%´ü8Åì7Dlw5f܏EðXdHð0ô¥Ã ƒQ¦íHë¿^£ 

tsgeric is offline  
Unread 14th Apr 2012, 04:49 PM   #4
www.veerotech.net
War Room Member
 
Kingfish85's Avatar
 
Join Date: 2011
Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2
Default
Re: need help with SP supercache plugin
Share on: 
fb share twitter share gplus share more share

Good grief. Turn the mod-rewrite off and use PHP. What do you get then?

|~| VeeroTech Hosting - sales @ veerotech.net
|~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
|~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
|~| Visit us @veerotech Facebook - Twitter - LinkedIn
Kingfish85 is offline  
Unread 14th Apr 2012, 04:54 PM   #5
HyperActive Warrior
War Room Member
 
tsgeric's Avatar
 
Join Date: 2010
Location: Bellevue, WA
Posts: 243
Thanks: 67
Thanked 28 Times in 27 Posts
Default
Re: need help with SP supercache plugin
Share on: 
fb share twitter share gplus share more share

Good grief is right!

all back to normal with the PHP option, also I rewrote my .htaccess to the original plain 5-lines or so.

The site just feels faster with that more troublesome option, just trying to make it work, that's all, if anybody had any insight into that code.

tsgeric is offline  
Unread 14th Apr 2012, 04:55 PM   #6
www.veerotech.net
War Room Member
 
Kingfish85's Avatar
 
Join Date: 2011
Location: Raleigh, NC
Posts: 2,913
Thanks: 424
Thanked 484 Times in 414 Posts
Blog Entries: 2
Default
Re: need help with SP supercache plugin
Share on: 
fb share twitter share gplus share more share

Also,

The more lines that have to be processed in the htaccess, the slower the site will be. The htaccess file gets processed before serving any data.

My suggestion - use a CDN such as CloudFlare. We recommend this to all of our customers and we use it on our site. CloudFlare in combination with LiteSpeed (replaces apache) is amazing.

|~| VeeroTech Hosting - sales @ veerotech.net
|~| High Performance CloudLinux & LiteSpeed Powered Web Hosting
|~| cPanel & WHM - Softaculous - Website Builder - R1Soft - SpamExperts
|~| Visit us @veerotech Facebook - Twitter - LinkedIn
Kingfish85 is offline  
Closed Thread


Bookmarks

Tags
plugin, supercache


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 12:11 PM.