Testing URL Rewriting
The Testing URL Rewriting section allows Administrators to change settings and test the results before they are actually applied helps in building confidence in the interface and site, before anything is actually changed. This is similar to content previews, and is a very useful tool for newer users and power users alike.
The Test URL rewriting, redirecting and replacing functions are UI based, and use the unit testing hooks within the code to allow a mock request to be made, but one that doesn’t actually involve a proper web request.
This makes it easy to test any new settings. If this module is added to a site page, then authenticated users must be granted view rights to the page where the module is located.
- Navigate to > Advanced Settings >
Advanced URL Management.
- Select the Test URL tab.
- Locate the page to be rewritten by completing Steps 3-5 of See "Testing a Page URL".
- Click on the link displayed below Resulting URLs. This display the URL in the Test URL Rewriting field below.
- Click the Test URL Rewriting button. This displays the following results below:
- Rewriting Result: Displays the rewritten URL in the raw format as it will be seen by the DNN platform and third-party extensions.
- Identified Language / Culture: Displays the culture code as identified during the URL Rewriting process.
- Identified : Displays the name of the DNN page that has been identified during the URL Rewriting process.
- Redirection Result: If the tested URL is to be redirected, shows the redirect location of the URL.
- Redirection Reason: Produces an internal system code determining what action will be taken with the URL. This can be used in troubleshooting by determining which logic paths are being used within the URL Rewriting component.
- Operation Messages: This field will display any debug messages created during the test URL Rewriting process.
Open topic with navigation