Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have litespeed on my server and am trying to use the cache system. I have followed the wiki instructions.

And have this in my Magento .htaccess

RewriteRule (.*\.php)?$ - [L,E=Cache-Control:max-age=120]

The cache is working as I'm getting the X-response hit in the header but I can't find a way to exclude the admin area from the cache.

share|improve this question
Could you clarify whether the question is about getting the cache to work or excluding the admin area from the cache? – Ladadadada Feb 22 '13 at 15:01
@Ladadadada , sorry for delay in replying ... Yes the cache is working but can't exclued admin area ...? – Ledgemonkey Feb 24 '13 at 9:50

Add these lines before your RewriteRule:

RewriteCond %{ORG_REQ_URI} !^/admin/
RewriteCond %{ORG_REQ_URI} !^/admin$
RewriteCond %{ORG_REQ_URI} !^/index.php/admin/
RewriteCond %{ORG_REQ_URI} !^/index.php/admin$

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.