Click or drag to resize
URLRewriter Class
URL rewriter class.
Inheritance Hierarchy
SystemObject
  CMS.URLRewritingEngineURLRewriter

Namespace: CMS.URLRewritingEngine
Assembly: CMS.URLRewritingEngine (in CMS.URLRewritingEngine.dll) Version: 13.0.131
Syntax
C#
public class URLRewriter

The URLRewriter type exposes the following members.

Constructors
  NameDescription
Public methodURLRewriter
Top
Fields
  NameDescription
Public fieldStatic memberPREFIX_CMS_GETATTACHMENT
GetAttachment prefix for CMS pages (pages which require authentication).
Public fieldStatic memberPREFIX_GETATTACHMENT
GetAttachment prefix.
Top
Properties
  NameDescription
Public propertyStatic memberFixRewriteRedirect
If true, the URL rewriting process attempts to fix the redirect that some module did with wrong URL by another redirect with the original URL. Set true when using cookieless mode. Default is false.
Protected propertyStatic memberProviderObject
Provider object.
Top
Methods
  NameDescription
Protected methodCompleteRequestInternal
Completes request
Protected methodStatic memberGetRelativePathFromUrl
Returns relative path from url. Example: http://www.domain.com/mypage.aspx => /mypage.aspx
Public methodStatic memberHandleRewriteRedirect
Handles the rewrite redirect of the request
Public methodStatic memberPerformPlannedRedirect
Performs the redirect that was previously planned by URL rewriter
Public methodStatic memberProcessRewritingResult(URLRewritingParams)
Processes the result of URL rewriting and handlers appropriate actions
Public methodStatic memberProcessRewritingResult(RequestStatusEnum, ExcludedSystemEnum, SiteNameOnDemand, String)
Processes the result of URL rewriting and handlers appropriate actions
Protected methodRedirectInternal
Redirects the response using specified URL (302 HTTP status code).
Protected methodRedirectPermanentInternal
Redirects the response using specified URL using permanent redirection using 301.
Public methodStatic memberRewritePath
Rewrites the path by using the given file path and query string.
Protected methodRewritePathInternal(String)
Rewrites the URL by using the given path
Protected methodRewritePathInternal(String, Boolean)
Rewrites the URL by using the given path
Protected methodRewritePathWithoutClearCachedUrlValuesInternal
Rewrites the URL by using the given path, path information and query string information, without clearing the cached values related to URL of the request
Protected methodStatic memberRewriteUrl(String, ExcludedSystemEnum, SiteNameOnDemand)
Applies rewriting to actual URL.
Public methodStatic memberRewriteUrl(RequestStatusEnum, String, ExcludedSystemEnum)
Rewrites the URL and performs all operations required after URL rewriting.
Public methodStatic memberValidateCulture
Validates the given culture and modifies it with a valid culture when the given culture was not valid. If not valid, it then chooses the site's default culture and sets it as a preferred culture.
Protected methodValidateLicenseInternal
Checks whether a license for the given URL and domain exists and is valid.
Top
See Also