How to fallthrough redirect to apex ?

Hello, i'd like to redirect to apex for any subdomain that not exist. for that I wildcard (*) to 100:: and wrote a redirect rule that all subdomain not in the list will be redirect. it's working good but then I have to add any subdomain in this list. is there a better way to do this ? (my "then expression" is concat("https://foobar.net", http.request.uri.path)
Thanks!
image.png
Was this page helpful?