Custom Querystrings Are Being Rewritten


DNN's friendly URL rewriting feature turns all query strings into part of the base URL. By default, this includes things like tracking links.

For example: 

Original URL:
Converted URL:

This may skew analytics data as this will be interpreted as a different page for Analytics services. 



You can use the Keep in Querystring Regular Expression regex string to prevent URL rewriting from changing tracking query strings without modifying your existing URLs.

  1. Login as a portal administrator.
  2. Go to Settings > SEO > Url Management > Expressions


  3. Append the specific query string to the Keep in Querystring Regular Expression text box.
    For example:

    Note: If you need assistance with the Regular Expression, a site such as can help.
  4. Click Save.



You can test that the query strings are not being rewritten by AUM by accessing the URL with the query strings. If a user visits the site with a tracking link (e.g., DNN should not rewrite this URL to



Article is closed for comments.