Microsoft.AspNetCore.Rewrite Namespace

Contains types used to modify request attributes based on predefined rules. Rewriting can be valuable in cases where resources have moved, or may be accessed by multiple urls.

Classes

ApacheModRewriteOptionsExtensions

Extensions for adding Apache mod_rewrite rules to RewriteOptions

IISUrlRewriteOptionsExtensions

Extensions for adding IIS Url Rewrite rules to RewriteOptions

RewriteContext

A context object for RewriteMiddleware

RewriteMiddleware

Represents a middleware that rewrites urls

RewriteOptions

Options for the RewriteMiddleware

RewriteOptionsExtensions

The builder to a list of rules for RewriteOptions and RewriteMiddleware

Interfaces

IRule

Represents a rule.

Enums

RuleResult

An enum representing the result of a rule.

Remarks

For more information about ASP.NET Core URL rewriting, see URL Rewriting.