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 ...Friendly Urls donFriendly Urls don't work on production server
Previous
 
Next
New Post
12/13/2011 2:34 PM
 

Hi,

 I am having problems with Friendly Urls (the ones that are set up in the Host Settings Advanced tab, and stored in the SiteUrls.config file). These redirects all operate as expected on my dev site, and on a demo site. Both sites run on the same server.

The redirects do not operate at all on my production server (which is a virtual server that we rent). I also note that the standard "/admin" redirect does not work either, but Urls of the form "/tabid/81/default.aspx" do!

I noticed that the log file in /Portals/_default/Logs contained lined pertaining to Localization issues, so I considered that my production server would have to be configured as an English (UK) machine to match my development systems. At this stage I can't verify whether this has worked because the locale change killed the server (WTF?!)

Anyhow, my SiteUrls.aspx contains this:

<?xml version="1.0" encoding="utf-8"?>
<RewriterConfig xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Rules>
    <RewriterRule>
      <LookFor>.*DesktopDefault.aspx(.*)</LookFor>
      <SendTo>~/Default.aspx$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*EditModule.aspx(.*)</LookFor>
      <SendTo>~/Default.aspx$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/TabId/(\d+)(.*)/Logoff.aspx</LookFor>
      <SendTo>~/Admin/Security/Logoff.aspx?tabid=$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/TabId/(\d+)(.*)/rss.aspx</LookFor>
      <SendTo>~/rss.aspx?TabId=$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*Telerik.RadUploadProgressHandler.ashx(.*)</LookFor>
      <SendTo>~/Telerik.RadUploadProgressHandler.ashx$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>[^?]*/TabId/(\d+)(.*)</LookFor>
      <SendTo>~/Default.aspx?TabId=$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*BannerClickThrough.aspx(.*)</LookFor>
      <SendTo>~/DesktopModules/Admin/Banners/BannerClickThrough.aspx$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/Property/Sheffield/([^/?]+)</LookFor>
      <SendTo>~/Default.aspx?TabId=81&amp;MBASearchView=list&amp;MBASearchLocation=$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/Property/Sheffield/([^/?]+)/Beds(\d+x?)</LookFor>
      <SendTo>~/Default.aspx?TabId=81&amp;MBASearchView=list&amp;MBASearchLocation=$1&amp;MBABeds=$2</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/Property/([^/?]+)/.*</LookFor>
      <SendTo>~/Default.aspx?TabId=81&amp;MBASearchView=detail&amp;MBAITEM=$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/Property-Map/Sheffield/([^/?]*)</LookFor>
      <SendTo>~/Default.aspx?TabId=81&amp;MBASearchView=map&amp;MBASearchLocation=$1</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/Property-Map/Sheffield/([^/?]+)/Beds(\d+x?)</LookFor>
      <SendTo>~/Default.aspx?TabId=81&amp;MBASearchView=map&amp;MBASearchLocation=$1&amp;MBABeds=$2</SendTo>
    </RewriterRule>
    <RewriterRule>
      <LookFor>.*/Property-Map/([^/?]+)/.*</LookFor>
      <SendTo>~/Default.aspx?TabId=81&amp;MBASearchView=detail&amp;MBAITEM=$1</SendTo>
    </RewriterRule>
  </Rules>
</RewriterConfig>

 I'm a bit lost with this, so if anybody has any ideas about:

1) What settings do I need in IIS 7.5, what could affect this?

2) What settings do I need in Windows?

3) Could something have copied over wrong? If so, what would be a likely suspect?

4) Does anybody know a nifty way of verifying that the DNNFriendlyUrlProvider is actually being used? How can this be debugged?

In the meantime I think I'll try and add some Log4Net logging the the DNNFriendlyUrlProvider and see about getting some messages logged.

 Any help would be much appreciated as always.

 Cheers,

 Mark

 
New Post
12/13/2011 2:42 PM
 

My server came back up, and I can confirm that changing the system Locale did not fix this issue. It did however get rid of the "Missing localization key" errors.

I'm going home now for a night of furious DNN hacking. Note that the error message returned is "The resource you are looking for has been removed, had its name changed, or is temporarily unavailable." and the status is 404. IIS is set to use Custom Errors, and there is no mapping for 404.

Thanks,

Mark

 
New Post
1/29/2012 11:36 PM
 
What version on DNN are you using?

I am having this same problem with 6.1.2 on some clients' sites, but not on others. Even worse, this started happening after the Friendly URLs were working!

 Best,

BH

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Friendly Urls donFriendly Urls don't work on production server


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