New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the Community Exchange, where community members ask and answer questions about DNN. To get started, just start typing your question below and either select one of the suggested questions or ask a new question of your own.

DNNFriendlyUrl doesnt keep the custom URL that I have added into the SiteUrls.config

Return to previous page

  • 5/17/2018
  • 8761 Views

Question:

Kobe H 6 years ago

Hi there

I have the latest version 9.1.1.

Currently I am using this configuration in web.config:

<friendlyUrl defaultProvider="DNNFriendlyUrl">
<providers>
<clear />
<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true" regexMatch="[^a-zA-Z0-9 _-]" urlformat="advanced" />
</providers>
</friendlyUrl>

I added this into my SiteUrls.config

<RewriterRule>
<LookFor>.*/Products/Shoes</LookFor>
<SendTo>~/Default.aspx?TabID=33&CategoryID=4</SendTo>
</RewriterRule>

Now in my code, if I want to find the category for this page http://localhost/DNN/Products/Shoes

Request.Params("CategoryID")

I don't get the CategoryID = 4. Just comes with the missing CategoryID.

My "Keep in Querystring Regular Expression" is: /nomo/\d+|/runningDefault/[^/]+|/popup/(?:true|false)|/(?:page|category|sort|tags)/[^/]+|tou/[^/]+|(/utm[^/]+/[^/]+)+

Please let me know what am I missing here.

Thanks

DNNFriendlyUrl doesnt keep the custom URL that I have added into the SiteUrls.config

Kobe H
Kobe H 6 years ago
Add an Answer

Answers

Sign In to Participate
Or register to become a member