Marvellous.
There’s an extra slash that should perhaps be trimmed away, but it doesn’t cause any trouble under linux.
RewriteRule ^(.*) //wordpress/wp-content/cache/supercache/%{HTTP_HOST}/wordpress/$1/index.html.gz [L]
Thanks!
Hmm.
The code can’t use WordPress’ concept of root, since the .htaccess rules are all based on the webserver’s root, the DocumentRoot.
WordPress doesn’t care about the document root, just the absolute path to the directory containing it.
Tricky.
Closer, but now “wp-content” disappeared.
RewriteCond %{DOCUMENT_ROOT}/wordpress/cache/supercache/%{HTTP_HOST}/wordpress/$1/index.html.gz -f
RewriteRule ^(.*) /wordpress/cache/supercache/%{HTTP_HOST}/wordpress/$1/index.html.gz [L]