Class UrlRewriteModule
Implements UrlSegment-based URL rewriting.
Implements
Inherited Members
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
[Obsolete("URL Rewrite providers have been replaced with ASP.NET Routing, see ContentRoute for events or UrlResolver for resolving URLs")]
public class UrlRewriteModule : UrlRewriteModuleBase, IHttpModule
Remarks
Refer to "Routing" in the Developer Guide for more information and examples.
Constructors
UrlRewriteModule()
Declaration
public UrlRewriteModule()
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)
Rewrite a URL in a HTTP request from external to internal representation
Declaration
protected override void HttpUrlRewriteToInternal(UrlBuilder url)
Parameters
Type | Name | Description |
---|---|---|
UrlBuilder | url | The URL, possibly rewritten |
Overrides
Remarks
Rewrites to internal representation, typically EPiServer classic with id= and epslanguage=, taking care not to rewrite certain "untouchable" directories. Will also strip id= in all other cases to comply with the requirement that site enumeration should not be possible.
Init(HttpApplication)
Indicate no support
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. |