Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

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 DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Human Friendly UrlsHuman Friendly Urls
Previous
 
Next
New Post
1/29/2008 3:48 AM
 

Is there a way to get the human friendly urls feature to display urls with dashes between the words such as http://www.mywebsite.com/this-is-my-page.aspx rather than http://www.mywebsite.com/ThisIsMyPage.aspx?

 
New Post
1/30/2008 4:45 PM
 

You may have to name your pages using dashes between each word to get that effect.


Cameron McCarter

 
New Post
2/3/2008 8:26 PM
 

I noticed that a regular expression is used to create the friendly url. Does anyone know if it cam be modified to achieve the above result?

 
New Post
2/3/2008 10:45 PM
 

David,

You can get close. Try the HrefExchanger by Inventua. This allows you to have friendly URLs but if you want a something between the words that make up the title of your page, the HrefExchanger says to use an _ (underscore). I think there was something said about the problem of using a dash, but I don't remember exactly what it was. I use the HrefExchanger on each of my sites. And as I've learned, DO NOT enable "friendly URL's" from within the DNN installation. That negates what the HrefExchanger does. And sometimes, this may not work correctly for every page in your site, especially if you add this to a completed site. If that happens, you will need to delete the page it doesn't work on and recreate it. That's always worked for me. When you are logged in as "host" or "admin", the url's displayed will be the default DNN url's. You will need to log out to ensure the friendly URL's work for every page.

Here is the lines of code from one of my web.config files:

<configuration>
  <!-- register local configuration handlers -->
  <configSections>
    <section name="hrefExchanger" requirePermission="false" type="Inventua.HrefExchanger.ConfigurationHandler, Inventua.HrefExchanger" /> 

Put the above code in right before, and keep it separate from, the <sectionGroup name="dotnetnuke"> code.

Here is another line:

 <httpModules>
      <!-- add name="Authentication" type="DotNetNuke.HttpModules.AuthenticationModule, DotNetNuke.HttpModules.Authentication" / -->
      <add name="HrefHttpModule" type="Inventua.HrefExchanger.HrefHttpModule,Inventua.HrefExchanger" />

And finally the third line:

</system.web>
      <hrefExchanger extension=".aspx" w3c-output="strict" check-language="true" replace-spaces-with="_" />
<runtime>

Good luck!! 


Much thanks and appreciation!! Mr Happy
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Human Friendly UrlsHuman Friendly Urls


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

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

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. 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.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out