i read the manpage then asked deepseek 4 confirmation. you prolly want the request rewrite directive
from httpd.conf(5)<code>server "example.com" {
listen on * port 80
location match "/old/(.*)" {
request rewrite "/new/%1"
}
}
</code>
in ur case it'd be like dis:<code>server "example.tld" {
listen on * port 80
root "/srv/www/example.tld"
location match "^/~([^/]+)(/.*)?$" {
request rewrite "/user/%1%2"
}
}
</code>
