Hacking Hyphens into DNN URLs
I’m a big fan of Ventrian’s Friendly Urls Provider, which drops the /tabid/60/ part from DNN’s default URLs so you end up with human friendly URLs such as http://www.mydomain.com/about/contactus.aspx.
One important feature is missing though. The perfect URL as far as SEO is concerned looks like this: http://www.mydomain.com/about/contact-us.aspx. But currently the provider does not insert hyphens between words. While Scott McCulloch is working on a solution to incorporate this functionality into the provider, you can apply the following hack to make it happen today.
Sticking with the above example URL, look for the DNN tabid that corresponds to your Contact Us page. For this discussion let's assume the tabid=60. Now make an entry to the SiteUrls.config file via Host Settings | Advanced Settings | Friendly Url Settings as follows:
Match: .*/about/contact-us.aspx
Replace with: ~/Default.aspx?tabid=60

Then bring up the Page Settings of your Contact Us page and scroll to the very bottom and expand Advanced Settings | Other Settings. Set the Link Type to URL and enter your hyphenated Contact Us page URL into the Location text box.

After that don't forget to click Update and you are done.
A few words of caution. This "solution" is a hack and will only be manageable on small websites controlled by a DNN savvy administrator. It will also take extra effort on your part when linking to these hyphenated pages. The WYSIWYG editor will NOT pick up the hyphenated URL and you are in danger of creating duplicate content in the eyes of search engines with two different URLs leading to the same page. Oh, and it will only work for DNN 4.xx.
If you want to see the above in action visit crestautomall.com and look at URLs under Inventory and About.
Comments are closed