thanks for your help. Basically, my web site is a database driven web site with dynamic content, in order to optimize the server performance, the module create a cached copy of all content under the "cache" folder, as shown in the example in the threads above. This will allow all non-login user to load the page faster without going through the database query http request.
I've tried your code, still, the following part is not working.
- Code: Select all
RewriteCond %{REQUEST_URI} ^(/.*[^/])/?$
RewriteCond /srv/www/htdocs/whatever/cache/mysite.com/0%1.html -f
RewriteRule !^cache(/.*)?$ /whatever/cache/mysite.com/0%1.html [L]
I also tweaked the code few times to make it looks like below, but still not working, the htaccess is under /whatever/ (just for clarification, i did replace mysite.com with my server name):
- Code: Select all
RewriteCond %{REQUEST_URI} ^(/.*[^/])/?$
RewriteCond /srv/www/htdocs/whatever/cache/mysite.com/0/node/0%1.html -f
RewriteRule !^cache(/.*)?$ /whatever/cache/mysite.com/0/node/0%1.html [L]
- Code: Select all
RewriteCond %{REQUEST_URI} ^(/.*[^/])/?$
RewriteCond /srv/www/htdocs/whatever/cache/mysite.com/0/%1.html -f
RewriteRule !^cache(/.*)?$ /whatever/cache/mysite.com/0/%1.html [L]
- Code: Select all
RewriteCond %{REQUEST_URI} ^$
RewriteCond /srv/www/htdocs/whatever/cache/%{SERVER_NAME}/0%{REQUEST_URI}.html -f
RewriteRule ^(.*)$ /whatever/cache/%{SERVER_NAME}/0/$1.html [L]
Please advice
I really really appreciate your help!
Thanks a million