DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

Friendly URLs

 4 Replies
 1 Subscribed to this topic
 40 Subscribed to this forum
Sort:
Author
Messages
Growing Member
Posts: 28
Growing Member

Hello

I have recently upgraded from DNN 9.7.1 to  9.7.2  and have just gone live.  However, the URL's are not friendly.  How do I enable friendly URL's please? 

Thank you in advance.

Linda

Veteran Member
Posts: 1246
Veteran Member
MVP
MVP
You're an MVP!
Set the URLs to "advanced" in web.config.
Growing Member
Posts: 28
Growing Member

Thank you for your advice. The web config currently looks like this: "urlFormat = "Advanced"

What else could be the problem?

Veteran Member
Posts: 1182
Veteran Member
MVP
MVP
You're an MVP!

In my web.config it looks like

    [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]

[ = <, ] = >

Happy DNNing!
Michael

Michael Tobisch
DNN★MVP

DNN Connect
New Around Here
Posts: 1
New Around Here

I've done a downgrade from Evoq Content 9.1.1 to DNN Platform 9.1.1 and an upgrade from this version to the last on 9.8.

Everything is working as it suppost to work except the friendly url rewrite. I have a news module that can create and list news. For every news that is created a new content item is also created and after that this line is called to obtain the url for that news:

var url = DotNetNuke.Common.Globals.NavigateURL(NewsListTabId, Entities.Portals.PortalSettings.Current, "", "&cid=" + newsDto.ContentItemId);

Before the downgrade/upgrade process this line returned something like this:

- https://portaldomain.org/News/Title-of-the-news

But currently, without any change of my code I'm getting:

- https://portaldomain.org/.../[contentID]

This as a big impact on SEO as so I'me trying to reverse but I'm not finding the right place. Also Globals.NavigateURL is deprecated but INavigationManager doesn't seem to work.

On web.config the friendlyUrl provider is DNNFriendlyUrl and urlFormat is advanced. This is only happening with my modules, creating normal pages throught the persona bar will return URLs with the title of the page.

Can you please advice on what I can do?

 


               

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved