Redirect 4 paths with unknwon query parameters

Hi,

I currently try to implement FedSocnet compatibility for my site and according to https://fed.brid.gy/#setup I need to redirect 4 URLs “with query parameters”. According to the Netlify redirect docs I need to exactly specify the parameters. Is there a way around this?

Since new users can only put 2 links in posts, I’ve to modify the rules below to meet the forum requirements.

These URLs should be redirected with Query Parameters
/.well-known/host-meta
/.well-known/host-meta.xrd
/.well-known/host-meta.jrd
/.well-known/webfinger

The redirection examples for Apache look like:
RewriteEngine on
RewriteBase /
RewriteRule ^.well-known/(host-meta|webfinger).* hxxps://fed.brid.gy/$0 [redirect=302,last]

and for nginx
rewrite ^/.well-known/(host-meta|webfinger).* hxxps://fed.brid.gy$request_uri redirect;

What I tried so far:
/.well-known/* hxxps://fed.brid.gy/.well-known/:splat 200
/.well-known/host-meta* hxxps://fed.brid.gy/.well-known/host-meta* 200
/.well-known/webfinger* hxxps://fed.brid.gy/.well-known/webfinger* 200

Any hints?

Hi @renem,

At the moment a wildcard redirect won’t work with query params unless you specify all possible combinations of query params you want redirected. Is there a way for you to find out the query params that need to be forwarded?