Re: [users@httpd] RewriteRule and md5 (or expressions)

2022-12-10 Thread Eric Covener
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

Re: [users@httpd] RewriteRule and md5 (or expressions)

2022-12-10 Thread Eric Covener
> 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:

Re: [users@httpd] RewriteRule and md5 (or expressions)

2022-12-10 Thread BohwaZ
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:

Re: [users@httpd] RewriteRule and md5 (or expressions)

2022-12-09 Thread Frank Gingras
I would use a plain rewrite map for this case. On Fri, Dec 9, 2022 at 8:50 PM BohwaZ wrote: > Hi everyone, > > I'm wondering if it's possible to rewrite the current URL to a MD5 hash > of the request URL. > > What I'm trying to do is serve "/cache/[MD5 hash of URL].html" when a > request on

[users@httpd] RewriteRule and md5 (or expressions)

2022-12-09 Thread BohwaZ
Hi everyone, I'm wondering if it's possible to rewrite the current URL to a MD5 hash of the request URL. What I'm trying to do is serve "/cache/[MD5 hash of URL].html" when a request on "/URL" is done. This is for caching dynamic content: if the MD5 hash file exists, then serve the static file,