URL Rewrite support
What problem will this feature address?
I am using Dokploy to deploy a slidev site, and according to its documentation, I need a rewrite when deploying static files. Just like this
{
"rewrites": [
{ "source": "/(.*)", "destination": "/index.html" }
]
}
Describe the solution you'd like
I would like to add a UI similar to the Redirect to configure this.
Describe alternatives you've considered
I now do this by manually configuring the traefik configuration file, but feel like this may be a common feature
Additional context
Middleware configuration files I used
middlewares:
test-replacepathregex:
replacePathRegex:
regex: ^/(.*)
replacement: /index.html
Will you send a PR to implement it?
Maybe, need help
Rewrites would be a nice feature indeed. We are also now manually updating the Traefik config to rewrite requests to /api/* on one service and forward them to another service (which is not exposed to the public). It works just fine, but a standard way to do this would be great.
agree, this could be very helpful
+1 for i18n static website, I need { "rewrites": [ { "source": "/en", "destination": "/en.html" } ] }
Are there any updates?