Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

37 lines (26 sloc) 0.873 kb
To fully profit from Typo static caching capabilities, you need to add the
following rewrite rules to either your .htaccess or your virtualhost after
declaring the document root.
== Rewrite Rules For Apache
RewriteEngine On
RewriteCond %{DOCUMENT_ROOT}/cache/index.html -f
RewriteRule ^/$ /cache/index.html [PT]
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_FILENAME} -f
RewriteRule ^/(.*)$ /cache/$1 [PT]
RewriteCond %{DOCUMENT_ROOT}/cache/%{REQUEST_FILENAME}.html -f
RewriteRule ^/(.*)$ /cache/$1.html [PT]
== Rewrite Rules For Nginx
if (-f $request_filename) {
break;
}
if (-f $document_root/cache/index.html) {
rewrite ^/$ /cache/index.html break;
}
if (-f $document_root/cache$uri) {
rewrite (.*) /cache$1 break;
break;
}
if (-f $document_root/cache$uri.html) {
rewrite (.*) /cache$1.html break;
break;
}
Jump to Line
Something went wrong with that request. Please try again.