i have a single .htaccess file for both admin panel and website. In my website I am using apc cache for cache and it works fine in website, but in backend/admin panel there are lots of issues due to cache.
now i don't need a cache in admin panal but website i need a cache
So, please tell me how I can write a regex in .htaccess for both website as well as admin panel.
Currently I am using this code in my .htaccess
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/svg+xml "access 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##
For example :
cache works on : www.xyz.com/
cache not works on : www.xyz.com/admin
.htaccess
file probably are located somewhere else and are - again probably - the same for both sections (admin / non-admin).