Redirect with part of matched URL
Joaquim Rocha
16
Reputation points
Hi! Recently I have been trying to port a website that uses 3rd party host to Azure Static Web Apps. We have redirects which need to use the wildcard matched portion of the URL, for example: /article/blog-post-title -> /blog/blog-post-title , so we should do /article/* -> /blog/:matched
I have looked into https://learn.microsoft.com/en-us/azure/static-web-apps/configuration#routes but it doesn't seem to support reusing the matched part from the wildcard in the resulting route.
Is there a solution for this which I may have missed?
Thank you in advance!
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
Sign in to answer