Thank you Eric! With your help I figured it out:
SetEnvIfExpr
"'%{DOCUMENT_ROOT}/cache/%{md5:REQUEST_URI}.html' =~ /(.+)/"
CACHE_PATH=$0
then use it in and RewriteRule, or:
RewriteCond expr "%{md5:REQUEST_URI} =~ /(.+)/"
RewriteRule .* "%{DOCUMENT_ROOT}/cache/%0.html"
Awesome :)
-
On Sat, Dec 10, 2022 at 7:49 AM Eric Covener wrote:
>
> > I thought of setting a variable with SetEnvIfExpr, or with RewriteCond,
> > but they're not designed for that and I don't think that's possible.
>
> I think the SetEnvIfExpr way is the way to go.
Whoops, I missed in the doc even after chec
> I thought of setting a variable with SetEnvIfExpr, or with RewriteCond,
> but they're not designed for that and I don't think that's possible.
I think the SetEnvIfExpr way is the way to go.
-
To unsubscribe, e-mail: users-unsub
Thank you, yes it was also what I thought, but RewriteMap is not
available in .htaccess, and this is for an app that is mostly used on
mass hosting providers, with no access to the server config.
-
To unsubscribe, e-mail: users-un