IMG-LOGO

How to use url friendly for page name rather than tabid query string in DNN?

andy - 29 Jul, 2013 3972 Views 2 Comment

If you are using the older version from 4.x.x and upgrade to newer version 5.x.x or 6.x.x, you can use modify your current setting to use human friendly url. This setting will basically remove the TabId from your site url.

To make some changes, please back up a copy of your web.config file, just in case something goes wrong. Open the web config file and look for friendly URL tag.

<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includepagename="true" regexmatch="[^a-zA-Z0-9 _-]">
</add>

Just add the extra attribute urlFormat="humanfriendly" and it should remove the TabId from the url string.

<add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includepagename="true" regexmatch="[^a-zA-Z0-9 _-]" urlformat="humanfriendly">
</add>

Comments

debojyoti
11 Mar, 2017
Hi Sir, when I use this settings in dNN and open any link it shows "HTTP Error 404.0 - Not Found". How I remove this error ? Please help. Thank You.
andy
19 Mar, 2017
what version of DNN are you using? This setting basically only help tidying up the page name.
Write Comment
0 characters entered. Maximum characters allowed are 1000 characters.

Related Articles

How to change copyright text in DNN?

In this article, I am going to show you how to change the copyright text in DNN. Usually, a copyright text is located under the footer of the site template.