I have cooked up a solution for this that is working on several live WP
sites and a WP MU site.  Here are the Behavior and Handler rules I used in
order:


(Extensions html AND File exists) - FINAL
 > Static Content

[[ Wordpress MU Redirections excluded ]]

Extensions php - FINAL
> FastCGI

File Exists - FINAL
> List & Send

((NOT Regular Expression ^/wp-.*) AND Regular Expression /$) - NONFINAL
 > Redirection
Regex: ^(.*)$
Substitution: /wp-content/cache/supercache/${host}$1index.html

DEFAULT
> Redirection
Regex: <blank>
Substitution: /index.php


The only BIG RED FLAG is that your caching pluging must support
pre-generation of all static .html files in one go.  WP SuperCache are smart
enough to handle requests and cache hydration in a way that makes redirect
loops from the second-to-last and first rules unlikely (which was the logic
piece that I think Stefan was missing).  I have not figured out a work
around for plugins that cannot generate all static files at once.

Make sure your redirection Behavior to /index.php doesn't append anything
(some rewrite rules for other engines suggest this).  Appending anything to
the querystring fills PHP's $_GET, and all known caching plugins will not
cache request with a query string.

Regex           Substitution
/?(.*)          /index.php?/$1   - WRONG
<blank>         /index.php       - RIGHT


On Wed, Jul 13, 2011 at 12:10 PM, Stefan de Konink <[email protected]> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> Op 13-07-11 18:56, Dale schreef:
> > I appreciate you taking the time to reply but would you please address
> > the entire question or provide some insight into solving the problem?
> > This type of terse, single dimension response is not helpful.
>
> Don't worry about 'untransform' or 'redirect' just implement filematch
> with the correct docroot above 'anything' else.
>
>
> Stefan
>
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee

Reply via email to