• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class UrlRewriterUtils

Inheritance
System.Object
UrlRewriterUtils
Namespace: DotNetNuke.Entities.Urls
Assembly: DotNetNuke.dll
Syntax
public static class UrlRewriterUtils : object

Methods

| Improve this Doc View Source

CleanExtension(String, FriendlyUrlSettings, String)

Clean Page name to remove page extension.

Declaration
public static string CleanExtension(string value, FriendlyUrlSettings settings, string langParms)
Parameters
Type Name Description
System.String value

page name.

FriendlyUrlSettings settings

friendly url settings.

System.String langParms

language.

Returns
Type Description
System.String

value without the extension.

| Improve this Doc View Source

ExtendOptionsForCustomURLs(FriendlyUrlOptions)

Return an extended FriendlyUrlOptions object for Custom URLs checkings.

Declaration
public static FriendlyUrlOptions ExtendOptionsForCustomURLs(FriendlyUrlOptions options)
Parameters
Type Name Description
FriendlyUrlOptions options

The original options.

Returns
Type Description
FriendlyUrlOptions

The extended options.

| Improve this Doc View Source

GetOptionsFromSettings(FriendlyUrlSettings)

Return a FriendlyUrlOptions object from the provider settings.

Declaration
public static FriendlyUrlOptions GetOptionsFromSettings(FriendlyUrlSettings settings)
Parameters
Type Name Description
FriendlyUrlSettings settings

The settings.

Returns
Type Description
FriendlyUrlOptions

A new FriendlyUrlOptions instance.

| Improve this Doc View Source

Log404(HttpRequest, FriendlyUrlSettings, UrlAction)

Logs the 404 error to a table for later checking.

Declaration
public static void Log404(HttpRequest request, FriendlyUrlSettings settings, UrlAction result)
Parameters
Type Name Description
HttpRequest request

The request.

FriendlyUrlSettings settings

The settings.

UrlAction result

The result.

| Improve this Doc View Source

LogExceptionInRequest(Exception, String, UrlAction)

logs an exception once per cache-lifetime.

Declaration
public static void LogExceptionInRequest(Exception ex, string status, UrlAction result)
Parameters
Type Name Description
Exception ex

The exception.

System.String status

The HTTP status.

UrlAction result

The result.

  • View Source
Back to top by the community, for the community... #DNNCMS