WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Cache
Bug report: error in htaccess lines (1 post)

  1. Biranit
    Member
    Posted 1 year ago #

    Hi,

    When adding mobile support, I get a big yellow message titled "Rewrite rules must be updated". The fourth option given is to manually edit .htaccess and states:

    Add the rules yourself. Edit /home/toi/public_html/timesofisrael.com/.htaccess and find the block of code enclosed by the lines # BEGIN WPSuperCache and # END WPSuperCache. There are two sections that look very similar. Just below the line %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$ add these lines: (do it twice, once for each section)

    It then provides the following lines:

    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|iPhone|iPod|incognito|webmate|Android|dream|CUPCAKE|froyo|BlackBerry9500|BlackBerry9520|BlackBerry9530|BlackBerry9550|BlackBerry\ 9800|BlackBerry\ 9850|BlackBerry\ 9860|BlackBerry\ 9780|webOS|s8000|bada|IEMobile/7.0|Googlebot-Mobile|AdsBot-Google).*
    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-).*

    Please note the following errors in the above:

    1) There are FOUR "sections that look very similar" where this code needs to be added; not two as stated.

    2) HTTP_USER_AGENT is case sensitive. Writing "HTTP_user_agent" as suggested will give 500 errors and render the website inaccessible.

    3) Alternatively, or as well: Both lines should be finished with [NC].

    In the rewrite rules generated by WP-Super-Chace "Update Mod_Rewrite Rules" button, I did not encounter any problems, so this is probably just a matter of fixing the instructions.

    Thought you should know.

    Cheers,

    Bira

    http://wordpress.org/extend/plugins/wp-super-cache/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.