[Solved] Error Configure Cache on cPanel Pre Virtual Host Include

Discussion in 'LiteSpeed Cache General' started by skyknight, Aug 20, 2012.

  1. skyknight

    skyknight Member


    i want to use LS Cache on cPanel server so i follow instruction in page


    I put this code (instruction no.5) to my "Pre Virtual Host Include"

    RewriteEngine On
    RewriteEngine On
    ## cache should be available for HEAD or GET requests
    RewriteCond %{REQUEST_METHOD} ^HEAD|GET$
    ## select which pages to cache
    RewriteCond %{HTTP_COOKIE} page_contain_cachetoken=yes
    ##with other condition
    RewriteCond %{QUERY_STRING} !s=[a-fA-F0-9]{32}
    ##excluding certain URLs
    RewriteCond %{REQUEST_URI} !/(login|register|usercp|private|profile|cron|image) \.php$
    ##cache for 2 mins for php pages only
    RewriteRule /(.*\.php)?$
    Last edited: Aug 20, 2012
  2. webizen

    webizen Well-Known Member

    there is an extra space between "image)" and "\.php$". seems to be added by vbulletin. it needs to be removed.
    It should be like below instead.
    Last edited: Aug 20, 2012
  3. skyknight

    skyknight Member

    thank you :)

Share This Page