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 ...URLURL's suddenly gone case sensitive (4.8.3)
Previous
 
Next
New Post
4/28/2009 8:46 AM
 

One of our client sites has reported that lots of links are reverting to the homepgae suddenly. It seems that something must have changed to stop it recognising ".../Default.aspx?tabid=XXX" and instead it will only work if default.aspx is changed to a small "d".

What on earth could have changed or what can I do to fix it?

 

Thanks

Ian

 


Ian Sampson Glanton Solutions - DNN Partner AD-Pro - Active Directory integration for DNN Are you contented? Ask us how you can use DNN to converse, convert and connect your audience.
 
New Post
5/7/2009 7:51 AM
 

I'm still at a total loss as to what could have happened and have a very irate customer on  my hands. We done some more research and found the following. Any input gratefully received (hell - we'll even pay you!)

 

 

http://sitea.myintranet.com “Default.aspx” problem

 

Symptoms

Within DNN there are three (at least) types of link to access a page. Only the first and second are in use on this site as far as I see, but all three should work.

The first and third work OK.

 

1 - This works (User Friendly URLS – used more recently):

http://sitea.myintranet.com/News/2008newsarchive/September2008/WinningheartsandmindsinKarachi/tabid/593/Default.aspx

 

2 - This does not (older style without friendly URLs) :

http://sitea.myintranet.com/Default.aspx?tabid=593

 

3 - This works (but not in use on site):

http://sitea.myintranet.com/tabid/593/Default.aspx

 

Ref (2) - the lower case version of the older style does work :

http://sitea.myintranet.com/default.aspx?tabid=593

 

Some experiments:

Mixed case for the working URLs does not affect the link.

The default.aspx works if you have ALL upper case or mixed – just not “Default.aspx” !!!

E.g. these work:

 

http://sitea.myintranet.com/DEFAULT.ASPX?tabid=593

 

http://sitea.myintranet.com/DEfAULt.ASpX?tabid=593

 

http://sitea.myintranet.com/Default.aspX?tabid=593

 

 

What is happening ?

What is actually happening when we call default.aspx rather than Default.aspx ?

The module must be found in all cases – otherwise it would fail with a 404 message.

Example:

http://sitea.myintranet.com/default2.aspx?tabid=593

 

So how can it be found and yet not be handling the request ?

If this were a UNIX platform we could assume that we have two files but this is not the case in Windows (is it ???).

 

Note also that the failure action is to take you to the home page.

This is the same default action if you try to access an invalid page ID, e.g.

http://sitea.myintranet.com/default.aspx?tabid=1

(Note that the URL changes after arrival at home page).

 

When you used the “Default.aspx” page, it takes you to home page but leaves the URL as is:

http://sitea.myintranet.com/Default.aspx?tabid=1

 

Interestingly if you use a higher invalid page number it takes you to the Login page:

http://sitea.myintranet.com/default.aspx?tabid=999

The “Default.aspx” page still fails be going to the home page with the URL showing.

 

Is it possible that a DNN error handler is involved here ? E.g. Why does the user get redirected to different pages depending on the invalid tabid ?

 

The symptoms seem to suggest that the error lies outside of DNN.

 

Has the HTML Editor been updated at any stage?

 

IIS

Is IIS configured correctly ?

Has it changed.

Are there any redirect page handlers setup ?

 

Restart

Have we / can we tried:

Restarting DNN App (I believe this can be done within Host account)

Reinstalling DNN for the site

Restarting IIS

Restarting SQL Server

Restarting the Server

 

 

Date of Reported Error

When was error noted ?

Although the user reported the error recently – it may have been a problem for some time. The friendly URLs seem to have been introduced around September 2008, so is it possible that the fault was actually introduced some time ago but users have only juts noticed ? That is – the system change that caused this may not have been a very recent one (which we are assuming).

 

User Site management

How do users maintain this site?
It seems to be built on Text modules with users adding new links to News pages by adding a new row to a Table. This relies on them getting the URL right in the first place. I assume they simply cut&paste – which is why the latter links use the friendly URLs.

Not sure if any of this is relevant, but it would be good to know.

 

 

Error Log

There are some recent errors reported in Error Log but these do not seem to relate to this problem.

 

Is there additional site logging we can switch on – either at DNN or ISS level ?

 

Friendly URLs

Is it possible that the Friendly URL Rules are involved ? Maybe they are invoked when using the old style URLs ?

 

Example:

[^?]*/TabId/(\d+)(.*) ~/Default.aspx?TabId=$1

 

Could we try change the target URL to use lower case ?

 

BEWARE – THIS CAN SCREW YOUR SITE UP- if you enter an invalid value you cannot use the site.

Solution - switch to Design mode to edit back to original value.

 

Note that WA site has fewer friendly settings; it does NOT have:

DesktopDefault.aspx(.*)

.*EditModule.aspx(.*)

 

However, a standard installation I tried has the same 5 settings as the lubricants site.

 

On a related matter one of the friendly URLs refers to “DesktopDefault.aspx”

If you use this module, with case as above, this DOES work (but not sure what the DesktopDefault module is):

http://sitea.myintranet.com/DesktopDefault.aspx?tabid=593

 

 

Google Web search

This did not show anyone else with this problem.

 

Out of interest, this module seems to be a helper to manage Friendly URLs – note that it shows various examples using upper and lower case versions of default.aspx.

See:

http://www.dnncreative.com/Tutorials/DNNTutorialsforThirdPartyModules/iFinityURLMasterModule/tabid/492/Default.aspx

 

 

Site Aliases

Also tested the various pages on the aliases – same problem, which is not surprising.

 

 

Test Module

I have created a test module (there was already an existing test page).

You have to be in as Admin to access.

 

Target page:

http://sitea.myintranet.com/Test2/tabid/1197/Default.aspx

 

Test Page:

http://sitea.myintranet.com/Testform/tabid/1204/Default.aspx

 

You click on the “Link1” etc. to follow the link.

 

The links I set up are as follows:

 

Link1 http://sitea.myintranet.com/Test2/tabid/1197/Default.aspx

 

Link2 http://sitea.myintranet.com/tabid/1197/Default.aspx

 

Link3 http://sitea.myintranet.com/Default.aspx?tabid=1197

 

Link4 http://sitea.myintranet.com/default.aspx?tabid=1197

 

Link5 http://sitea.myintranet.com/DesktopDefault.aspx?tabid=1197

 

Result – problem is still there (Link 3 fails).

 



Ian Sampson Glanton Solutions - DNN Partner AD-Pro - Active Directory integration for DNN Are you contented? Ask us how you can use DNN to converse, convert and connect your audience.
 
New Post
5/7/2009 11:23 AM
 

that's very odd. I don't believe it's a dnn error, we don't worry about casing for url's - as IIS is case insensitive anyway, there is no difference. Note: if you take a look at \Config\siteurls.config you'll even see that the rewrite rules use Default.aspx (capital D) so every site with human/manchine friendly url's has been using uppercase "D" and noones ever reported an issue (until now :) )

I guess you could have an issue with something such as an ISAPI filter that was written in c++, that is case sensitive. I did read a while back about a urlrewrite component for IIS7 that supported case-sensitive urls (sorry can't find the article now).

Note: strictly speaking it's possible to make IIS case sensitive by adjusting the NTFS settings (http://connectivity.hummingbird.com/support/nc/nfs/nfs9002916.html?cks=y)

To test if it's an IIS/NTFS issue, i'd recommend you create a page called "Test.htm" and drop it in the root folder. As it's not a .net extension , dnn (and any httpmodules) will ignore it, meaning only IIS (and any associated ISAPI filters) will process it. If you then type in sitea.myintranet.com/test.htm and the file is not served, the issue is with IIS or NTFS. If it's not , then it's likely to be .net related. In that case, create a new folder, add a page called Test.aspx, and repoint your site to that (i.e. so it's the only page in the site), now test if sitea.myintranet.com/test.aspx is served. If it's not, you've confirmed that it's not dotnetnuke related.

Sorry I can't offer any other advice than that, it's a very strange problem, i've certainly never heard of it.

Cathal

 

 


Buy the new Professional DNN7: Open Source .NET CMS Platform book Amazon US
 
New Post
5/8/2009 5:11 AM
 

Thanks Cathal.

 

I've tried your suggestions without luck - it does not seem to be an IIS or server thing (i.e. I added an HTML page and called it fine in both lower and upper case).

I switched DNN into design mode on the off chance some module was playing up with no luck either.

It only seems to be when the URL is in the format:

/default.aspx?tabid= xxx

 

These Work

/default.aspx?tabid= xxx

/default.aspx?TABID= xxx

/news/2008/september/tabid/100/Default.aspx

/news/2008/september/tabid/100/default.aspx (i.e. lower case d in Default.)

This doesn't

/Default.aspx?tabid= xxx!

 

Go figure.

We're not using any URL re-writing.

Cheers

Ian


Ian Sampson Glanton Solutions - DNN Partner AD-Pro - Active Directory integration for DNN Are you contented? Ask us how you can use DNN to converse, convert and connect your audience.
 
New Post
2/7/2010 6:03 AM
 

I faced to absolete some problem. I chech IIS, it is not case sensetive, but work only mysite/default.aspx by not mysite/Default.aspx in DNN site

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...URLURL's suddenly gone case sensitive (4.8.3)


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