carmelyne (owner)

Forks

Revisions

gist: 66719 Download_button fork
public
Public Clone URL: git://gist.github.com/66719.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
# If cached file exists, serve it and stop processing
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}%{REQUEST_FILENAME} -f
RewriteRule ^(.*)$ /cache/%{HTTP_HOST}$1 [L]
 
# other redirection (imgs, js, css, ...)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !.*/mephisto/.*
RewriteCond %{REQUEST_URI} !.*html
RewriteCond %{REQUEST_URI} !^/cache
RewriteCond %{DOCUMENT_ROOT}/cache/%{HTTP_HOST}/$1 -f
RewriteRule ^/(.*)$ /cache/%{HTTP_HOST}/$1 [QSA,L]