DotNetNuke Blog

Current Blog | | Search |

Human Friendly URLs  By Jeff Smith
Thursday, November 15, 2007 10:43 PM :: 1608 Views :: 4 Comments :: Article Rating :: DotNetNuke, Search Engine Optimization Send A Message

A new feature in DNN 4.7 is the "human friendly urls". Instead of displaying the long URLs with tabid (Example: http://www.domain.com/tabid/123/default.aspx), by adding an attribute to the DNNFriendlyURL provider in your web.config, you can provide URLs using the page name only (Example: http://www.domain.com/Home.aspx). This is great for not only being able to give other people simple URLs to pages on your site, but also for search engine optimization.

 

To make the change, simple add the following attribute: 

urlFormat="HumanFriendly"

to the following line in your 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="HumanFriendly" />
      </providers>
    </friendlyUrl>

 

By D McSorley @ Tuesday, November 20, 2007 2:54 PM
Great tip! This is really helpful. Thanks, DM

By karen @ Monday, October 20, 2008 3:40 PM
I did this and can see no change. Is there something that needs to be changed in addition to the items in this blog?

By nitingoel @ Friday, April 24, 2009 4:35 AM
Hi,

I did this on my local IP, but when I open that then it is working fine as localhost:32 but when Wrote fulle IPinplace of localhost it is not opening the page.

Can anybody pleae help me in this....

By Chetan Sawant @ Tuesday, May 05, 2009 7:16 AM
I also tried this but it still displays tabid in the URL. Is there any other setting there that needs to be change?

Comments
Only registered users may post comments.
 Print   

 © 2007 - Venexus, Inc. - All rights reserved Terms Of Use | Privacy Statement