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&MBASearchView=list&MBASearchLocation=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>.*/Property/Sheffield/([^/?]+)/Beds(\d+x?)</LookFor>
<SendTo>~/Default.aspx?TabId=81&MBASearchView=list&MBASearchLocation=$1&MBABeds=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>.*/Property/([^/?]+)/.*</LookFor>
<SendTo>~/Default.aspx?TabId=81&MBASearchView=detail&MBAITEM=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>.*/Property-Map/Sheffield/([^/?]*)</LookFor>
<SendTo>~/Default.aspx?TabId=81&MBASearchView=map&MBASearchLocation=$1</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>.*/Property-Map/Sheffield/([^/?]+)/Beds(\d+x?)</LookFor>
<SendTo>~/Default.aspx?TabId=81&MBASearchView=map&MBASearchLocation=$1&MBABeds=$2</SendTo>
</RewriterRule>
<RewriterRule>
<LookFor>.*/Property-Map/([^/?]+)/.*</LookFor>
<SendTo>~/Default.aspx?TabId=81&MBASearchView=detail&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