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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Regarding Friendly URL setting in Host setting ?Regarding Friendly URL setting in Host setting ?
Previous
 
Next
New Post
4/17/2009 9:13 AM
 

Hi all,

Today I was working on friendly URL setting under Host Setting , everything was working fine, but when I deleted [^?]*/TabId/(\d+)(.*) from the list, since then My site stop working I don't know why can any one help me out of this , when I click on any page it is giving error ("The Page can not be displayed") please help me to come out of this to again run my website.

Thanks in Advance

Nitin

 

 

 
New Post
4/18/2009 7:44 AM
 

Hi Nitin,

the friendly URLs are stored in the file SiteUrls.config in the root of the DNN directory. If you haven't made earlier changes to your friendly URL settings, you can simply replace that file with the default version from the installation package. Or you can edit that file (it contains plain text XML) with a simple text editor and include the deleted line again at the end of the <Rules> section:

<RewriterRule>
   <LookFor>[^?]*/TabId/(\d+)(.*)</LookFor>
   <SendTo>~/Default.aspx?TabId=$1</SendTo>
</RewriterRule> 

Hope that helps!

 
New Post
4/18/2009 8:34 AM
 

The previous answer is correct : restoring your friendlyurls.config file will restore the functionality.

As to why your site stopped working.  The friendlyurls.config file contains a series of regex expressions that are parsed against dnn urls requested.  If you get a match on the regex expression, the other part of the rule is run (the replace part).  Thus, a url like /pagename/tabid/45/default.aspx gets rewritten to defualt.aspx?tabid=45.  By deleting the tabid/(\d+) rule, you no longer get a match in your friendly url rules, the url doesn't get rewritten, asp.net cant' find anything on the server to match the url, and you get a 404.

So don't touch the friendly url config file unless you understand exactly how it works.  If you're trying to modify the url scheme, you can't do so simply by adding/changing rules in the config file.  That's because you need to generate the friendly urls in the site, as well as rewrite the rules when they are requested.  Changing the rules in the friendlyurls.config file only handles the rewriting part, so you still need to generate the friendly urls to start with.

 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Regarding Friendly URL setting in Host setting ?Regarding Friendly URL setting in Host setting ?


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