Class UrlRewriteModule
Implements UrlSegment-based URL rewriting.
Implements
Inherited Members
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 8.11.0Syntax
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, UrlBuilder.RebaseKind)
Rewrite a URL om a HTTP request from internal to external.
Declaration
protected override string HttpUrlRewriteToExternal(string url, UrlBuilder.RebaseKind typeOfUrl)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The URL. |
UrlBuilder.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.
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. |