On Wed, Jan 06, 2021 at 02:12:40PM -0800, Kevin wrote:
> Hey gang,
> 
> I'm trying to setup some rewrites in httpd that are needed to make some
> software we just purchased work.
> 
> The vendor's official docs only support nginx and apache, and I'm having a
> helluva time understanding how to make them work in our beloved OpenBSD.
> 
> Below is the nginx sample they provide.
> 
> Anyone with some httpd rewrite foo mind whacking me with a clue stick on
> how to accomplish this purty please?
> 
> Thanks,
> Kevin
> 
>    location /sendy/l/ {
>         rewrite ^/sendy/l/([a-zA-Z0-9/]+)$ /sendy/l.php?i=$1 last;
>     }

I'm not an expert, but I would try:

location match "^/sendy/l/([%w\/]+)$" {
        request rewrite "/sendy/l.php?i=$1"
}

good luck

Edgar

Reply via email to