Redirect paths with unknown query parameters - wildcard redirects


I currently try to implement FedSocnet compatibility for my site and according to 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

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

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

What I tried so far:
/.well-known/* hxxps:// 200
/.well-known/host-meta* hxxps://* 200
/.well-known/webfinger* hxxps://* 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?