how to exclude a folder from caching with smartoptimizer

i want to exclude some folder from being cahed by smartoptimizer.

This is because i have some subdomain in the main root which have template errors when cached with smartoptimizer, and so i want to exclude them

i think i have to add something to .htaccess but don;t know what exactly

any help please?

any idea?

anyway i find the solution for anybody has the same problem do the below:

at .htaccess file

add the following line inside “”

“RewriteRule ^(foldername1|foldername2|foldername3)(/|$) - [L]”

where “foldername#” are the folders/subdomains you want to NOT cache (for template errors reasons)

it should be something like this:

RewriteEngine on

RewriteBase /

RewriteRule ^sitemap.xml$ ./index.php?dispatch=xmlsitemap.view [L]

RewriteCond %{REQUEST_FILENAME} !.(png|gif|ico|swf|jpe?g|js|css)$

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . index.php?sef_rewrite=1 [L,QSA]

RewriteRule ^(foldername1|foldername2|foldername3)(/|$) - [L]

RewriteRule ^(.*.(js|css))$ smartoptimizer/?$1

Just wanted to say that this worked and thank you. I was tired of seeing the “could not access X file outside of directory”, errors.

I've used this and it seemed to work. I have a blog in a subdomain of my main site. Added Smartoptimizer and the css in the blog wasn't rendering. Added the fix above to exclude the blog and all seemed well. But today I went to the backend of the blog and I just get a white screen. I can't understand why the front end would be ok and the backend wouldn't but that's what's happening and I have no idea why or quite what to do about it.

Any help gratefully recieved.