Closed Monviech closed 8 months ago
Hmm probably not... there's not a lot of benefit in it for me. Caddy doesn't have the same problems as nginx does in this regard, so it's kinda useless to implement to fake redirections and stuff. Closing this without implementing it.
I need this in a few cases, so I have to add it.
https://caddyserver.com/docs/caddyfile/directives/rewrite
A handle with a rewrite will look like this:
Since I will add the rewrites into the handles, after they have matched a handle path, I can leave the rewrite always on "*" and then change the location afterwards.
That makes it easy to implement since its just a new field and a small change in the Caddyfile template.