Click or drag to resize
URLRewriterPageNotFound Method
Returns the page not found error or redirects to the page not found page

Namespace: CMS.URLRewritingEngine
Assembly: CMS.URLRewritingEngine (in CMS.URLRewritingEngine.dll) Version: 8.2.23
Syntax
C#
public static void PageNotFound(
	SiteNameOnDemand siteName = null,
	ViewModeOnDemand viewMode = null,
	bool alwaysRedirect = false
)

Parameters

siteName (Optional)
Type: CMS.SiteProviderSiteNameOnDemand
Site name
viewMode (Optional)
Type: CMS.PortalEngineViewModeOnDemand
View mode
alwaysRedirect (Optional)
Type: SystemBoolean
If true, the request is always redirected, not just rewritten
See Also