SPContext.UpdateAfterUrlRewrite method

Updates the context URI of the alternate URL after doing a URL rewrite.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)


Public Shared Sub UpdateAfterUrlRewrite

public static void UpdateAfterUrlRewrite()


For some operations that happen before the URL rewrite occurs, the context URI is setup with the incoming URI which is different than the HttpContext.Current.Request.Url when a URL rewrite is done. This method updates that stored URI.

This operation is supported only in AuthenticateRequest or AuthorizeRequest events of the IIS notification pipeline.

See also


SPContext class

SPContext members

Microsoft.SharePoint namespace