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: 8.2.23
Syntax
C#
public class URLRewriter

The URLRewriter type exposes the following members.

Constructors
  NameDescription
Public methodURLRewriter
Top
Methods
  NameDescription
Protected methodCompleteRequestInternal
Completes request
Public methodStatic memberDefaultPageBehavior
Gets the default page behavior for given site
Public methodStatic memberGetEditingUrl
Gets the preview page URL
Public methodStatic memberGetGoogleSiteMapPath
Returns sitemap node alias path for specific site
Public methodStatic memberGetGoogleSiteMapURL
Returns sitemap URL for specific site
Public methodStatic memberGetHandledUrl
Returns the url handled by handler404 page.
Public methodStatic memberGetLiveUrl
Gets the live page URL
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 memberCheckLicense
Check if license for actual Url is valid.
Protected methodCheckLicenseInternal
Check if license for actual Url is valid.
Public methodStatic memberCheckPublishedState
Checks the published state of the document. If the document is not published and combine with default culture is enabled and default culture is published, default culture is returned. If no published version is found, the page info is set to null.
Public methodStatic memberPageNotFound
Returns the page not found error or redirects to the page not found page
Public methodStatic memberPageNotFoundForNonPublished
Returns true if the non published documents should return page not found result.
Public methodStatic memberPerformPlannedRedirect
Performs the redirect that was previously planned by URL rewriter
Public methodStatic memberProcessABTest(String, ViewModeEnum, PageInfo)
Returns current page info with dependence on A/B test settings.
Public methodStatic memberProcessABTest(String, ViewModeEnum, PageInfo, UrlRewritingAction, String, String) Obsolete.
Returns current page info with dependence on A/B test settings.
Public methodStatic memberProcessPageTemplate Obsolete.
Processes the page template and returns file name to rewrite to, if returning file name is null, no rewriting should occur and was handled internally
Public methodStatic memberProcessRewritingAction
Processes the given rewriting action.
Public methodStatic memberProcessRewritingResult(URLRewritingParams)
Processes the result of URL rewriting and handlers appropriate actions
Public methodStatic memberProcessRewritingResult(RequestStatusEnum, ExcludedSystemEnum, SiteNameOnDemand, ViewModeOnDemand, 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 memberRedirectToMainUrl
Redirects the page to its main URL.
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
Public methodStatic memberRewriteUrl(RequestStatusEnum, String, ExcludedSystemEnum)
Rewrites the URL and performs all operations required after URL rewriting.
Protected methodStatic memberRewriteUrl(String, ExcludedSystemEnum, SiteNameOnDemand, ViewModeOnDemand)
Applies rewriting to actual URL.
Public methodStatic memberSendOutputFromCache
Attempts to send the output of the page from the cache.
Public methodStatic memberSetViewMode
Sets the viewmode if viewmode parameter present in current request parameters.
Protected methodTransferPageNotFoundInternal
Transfer page not found request
Public methodStatic memberUseDomainForCulture
Gets the value that indicates whether domain should be used for culture
Public methodStatic memberValidateCulture
Validates the culture value.
Top
Extension Methods
  NameDescription
Public Extension MethodAsValue
Converts object to a query value which can be used as a query parameter
(Defined by QueryExtensions.)
Public Extension MethodGetAPIString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodGetString
Gets the string by the specified resource key
(Defined by CoreExtensions.)
Public Extension MethodToBoolean
Returns the boolean representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDateTime
Returns the DateTime representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToDouble
Returns the double representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToGuid
Returns the Guid representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToInteger
Returns the integer representation of an object or default value if not.
(Defined by CoreExtensions.)
Public Extension MethodToString
Returns the string representation of an object or default value if not.
(Defined by CoreExtensions.)
Top
Fields
  NameDescription
Public fieldStatic memberCacheItemPriority
Cache item priority.
Public fieldStatic memberPREFIX_CMS_GETATTACHMENT
GetAttachment prefix for CMS pages (pages which require authentication).
Public fieldStatic memberPREFIX_CMS_GETDOC
GetDoc prefix for CMS pages (pages which require authentication).
Public fieldStatic memberPREFIX_CMS_GETFILE
GetFile prefix for CMS pages (pages which require authentication).
Public fieldStatic memberPREFIX_GETATTACHMENT
GetAttachment prefix.
Public fieldStatic memberPREFIX_GETFILE
GetFile 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.
Public propertyStatic memberRedirectLangParameterToPrefix
Gets the value that indicates whether URL with lang prefix should be redirected to the culture prefix if culture prefix is enabled for current site
Public propertyStatic memberUseDomainRedirectForFiles
Indicates whether domain redirect should be used for file request (getattachment, getmediafile, getmetafile, etc)
Public propertyStatic memberUseDomaiRedirectForFiles Obsolete.
Indicates whether domain redirect should be used for file request (getattachment, getmediafile, getmetafile, etc)
Top
See Also