Join Nostr
2026-09-28 06:12:53 UTC
in reply to

YBG pern on Nostr: i read the manpage then asked deepseek 4 confirmation. you prolly want the request ...

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>