Don't miss out Virtual Happy Hour today (April 26).

Try our conversational search powered by Generative AI!

Class RoutingUrlRewriteModule

Url rewrite implementation for web forms that uses configured Routing for Url rewrite.

Inheritance
System.Object
RoutingUrlRewriteModule
Implements
System.Web.IHttpModule
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class RoutingUrlRewriteModule : UrlRewriteModuleBase, IHttpModule

Constructors

RoutingUrlRewriteModule()

Declaration
public RoutingUrlRewriteModule()

Methods

HtmlAddRewriteToExternalFilter(HttpApplication)

Connect a filter for rewriting of outgoing HTML, and perform other actions before actually sending the HTML

Declaration
public override void HtmlAddRewriteToExternalFilter(HttpApplication httpApplication)
Parameters
Type Name Description
System.Web.HttpApplication httpApplication
Overrides

HttpUrlRewriteToExternal(String, RebaseKind)

Rewrite a URL om a HTTP request from internal to external.

Declaration
protected override string HttpUrlRewriteToExternal(string url, RebaseKind typeOfUrl)
Parameters
Type Name Description
System.String url

The URL.

RebaseKind typeOfUrl

The type of rebasing to perform on the url.

Returns
Type Description
System.String

The rewritten request URL

Overrides

HttpUrlRewriteToInternal(UrlBuilder)

Not implemented. Routing is used to handle incoming requests.

Declaration
protected override void HttpUrlRewriteToInternal(UrlBuilder url)
Parameters
Type Name Description
UrlBuilder url

url

Overrides
Exceptions
Type Condition
System.NotImplementedException

Always thrown

Init(HttpApplication)

Called by the ASP.NET framework to initialize module

Declaration
public override void Init(HttpApplication application)
Parameters
Type Name Description
System.Web.HttpApplication application
Overrides

ValidateRewriteHtmlToExternal(UrlRewriteEventArgs)

Check if we should rewrite outgoing HTML. e.Cancel will be set to true if we should not.

Declaration
protected virtual void ValidateRewriteHtmlToExternal(UrlRewriteEventArgs e)
Parameters
Type Name Description
UrlRewriteEventArgs e

The UrlRewriteEventArgs instance containing the event data.

Implements

System.Web.IHttpModule

Extension Methods