• 4/7/2015
  • 2607 Views

Comments

2607 Views

Siteurls

Last updated 6 years ago

Comments

Common

(Enter the content of this article below)

Advanced

 

Background

DotNetNuke has support forUrl Rewriting alllowing pagenames to be rewritten to a different form. Typically these use a basic set of rules e.g. rewriting an tabid integer to it's page name. However it is possible to add additional rules.

To do so, either log in as host and go to host->host settings and click the advanced setitngs section and expand the friendly url settings section.

You can now add a rule for what to look for and what to rewrite to -both settings support asp.net regular expressions.

As an alternative you can edit the SiteUrls.config file in the config folder directly (though you will need to go to tools->recycle application pool for the changes to be picked up. An example is shown below.

<RewriterRule>

<LookFor>.*/About.aspx</LookFor>
<SendTo>~/Default.aspx?TabID=40</SendTo>
</RewriterRule>

Please note, the list of rules should be kept to a minumum as they are evaluated on each page read.

As an alternative solutions such as iFinity have richer support.
Contents
No sections defined
Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out