Skip to content

DNN URL Management

Published: at 02:08 AM

Managing URLs in DNN (DotNetNuke) is crucial for ensuring clean, SEO-friendly URLs and providing a better user experience. The process involves using URL rewrite modules, custom rules, and external tools to handle URL structure and redirection effectively.

Key Resources for DNN URL Management

  1. DNN URL Management on Codeplex

  2. Open URL Rewriter on Codeplex

  3. DNN Rewrite Rule Generator

  4. iFinity’s URL Master for DNN

  5. IIS URL Rewrite Module Documentation

  6. ASPnix Community: Web.Config Rewrite Rules

Steps and Code for DNN URL Rewriting

To manage and rewrite URLs effectively in DNN, follow these steps:


1. Installing URL Rewrite Modules


2. Creating Rewrite Rules for SEO-Friendly URLs

<rewrite>
  <rules>
    <rule name="DNN SEO Friendly URLs" stopProcessing="true">
      <match url="^([^/]+)/([^/]+)/([^/]+)$" />
      <action type="Rewrite" url="/{R:1}/{R:2}/{R:3}" />
    </rule>
  </rules>
</rewrite>

This rule rewrites URLs to a cleaner structure, such as:

If you’re implementing 301 redirects for old URLs to point to new ones, use the following rewrite rule in the web.config:

<rewrite>
  <rules>
    <rule name="301 Redirect Old URL" stopProcessing="true">
      <match url="^old-path$" />
      <action type="Redirect" url="http://www.yoursite.com/new-path" redirectType="Permanent" />
    </rule>
  </rules>
</rewrite>

This rule ensures that visitors and search engines are redirected to the correct page and helps preserve SEO rankings.

3. Testing URL Rewrite Rules

4. Configuring DNN Settings for URL Management

DNN comes with built-in URL management settings to handle basic URL structures. You can adjust these settings by navigating to:

- Host Settings -> Advanced Settings -> URL Management

Make sure that the Friendly URLs option is enabled to allow DNN to process URLs in a more SEO-friendly way

5. Additional Configuration for SEO

Conclusion

By following these steps and using the resources provided, you can effectively manage URLs in DNN, improving both SEO and the user experience. Use IIS Rewrite Modules, the iFinity URL Master, and the built-in DNN URL management features to create clean, SEO-friendly URLs and redirect any outdated or duplicate URLs.


Previous Post
NopCommerce Upgrade Strategy
Next Post
Common HTTP Errors