U bent hierBloggggg > Dotnetnuke stuff
 FriendlyURL

By default, DNN always uses default.aspx for the page name.
If you made a page which is called "products", you will see something like:

http://www.yourwebsite.com/products/default.aspx

We can change this to:

http://www.yourwebsite.com/products.aspx

by modifying web.config.
If you look for the DNNFriendlyURL part in web.config, and add the urlFormat="HumanFriendly" attribute, it will work:

  <friendlyUrl defaultProvider="DNNFriendlyUrl">
   <providers>
    <clear/>
    <add name="DNNFriendlyUrl" type="DotNetNuke.Services.Url.FriendlyUrl.DNNFriendlyUrlProvider, DotNetNuke.HttpModules" includePageName="true"  urlFormat="HumanFriendly" regexMatch="[^a-zA-Z0-9 _-]"/>
   </providers>
  </friendlyUrl>


Terug