An OWIN middleware that provides a way to modify incoming URL requests, dynamically, based on regular expression rules. This allows you to map arbitrary URLs onto your internal URL structure in any way you like, based on apache mod_rewrite
See example project:
private class StartUp
{
public void Configuration(IAppBuilder app)
{
app.UrlRewriter("!\\.\\w+$ /index.html [L]");
app.UseStaticFiles();
}
}
If a path matches, any subsequent rewrite rules will be disregarded.
Proxy your requests
'^/test/proxy/(.*)$ http://example.org/$1 [P]'
Issue a redirect for request.
Regex match will be case-insensitive.
Gives a HTTP 403 forbidden response.
Gives a HTTP 410 gone response.
Sets content-type to the specified one.
Match on host.
For more info about available flags, please go to the Apache page: http://httpd.apache.org/docs/current/rewrite/flags.html
####Continuous Integration from TeamCity Owin.UrlRewrite project is built & tested continuously by TeamCity (more details here). That applies to pull requests too. Shortly after you submit a PR you can check the build and test status notification on your PR. I would appreciate if you could send me green PRs.
####Author Gert Jansen van Rensburg (@gertjvr81)