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 ...Custom Error Page & IIS7 and DNN Issues...Custom Error Page & IIS7 and DNN Issues...
Previous
 
Next
New Post
4/9/2010 12:13 PM
 

Having some issues with my site concerning non-existing URLs:

  • If you goto any non-existing URL that ends in asp it resolves to the custom 404 page set in IIS7
  • If you goto any non-existing URL that ends in aspx it resolves to a server error page that dispalys:

--------------------------------------------------------------------------------
Server Error in '/' Application.

The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly.

Requested URL: /dont.aspx

Version Information: Microsoft .NET Framework Version:2.0.50727.3074; ASP.NET Version:2.0.50727.4049
--------------------------------------------------------------------------------


Also... if I goto any URL of my site - which will look like something similar to this:

https://www.domain.com/Locations/tabid/2799/Default.aspx

If I were to remove the tabid value (in this case 2799) the URL will look like this:

https://www.domain.com/Locations/tabid/Default.aspx

this URL redirects me to some other page on our server completely unrelated... I have no idea why... How can I make it so that all non-existent URLs follow the custom 404 page set in IIS7?

 
New Post
4/9/2010 1:04 PM
 

Custom error messages in IIS 7 require an absolute URL. So 'dont.aspx' would be 'http://www.example.com/dont.aspx'.

As for your other redirect issue, are you using a 3rd party friendly URL provider?

 



 
New Post
4/9/2010 1:18 PM
 

I should have been more specific...

The 'Requested URL: /dont.aspx' error message came from the fact I put in the address bar: http://www.domain.com/dont.aspx

The URL I have in IIS7 for the 404 error page is:

/FooterMenu/PageNotFound404Error/tabid/3977/Default.aspx

This works fine for anything that does not end in ASPX... for instance if I went to http://www.domain.com/dont.asp it would goto the correct 404 error page...

 

Concerning the other redirect issues I do not believe I am using any other 3rd party utilities... I am not sure why the IIS7 custom 404 page does not work on all items that are not found on the site otherwise...

 
New Post
4/11/2010 12:12 AM
 
I completely understand your issue and it has something to do with how the URLRewrite is handled in DNN. To get around this, I ended up writing my own URLRewriter. This would be overkill for what you need, but if interested, I would be happy to send you the module + code. You can also look at the Ifinity URLMaster: http://www.ifinity.com.au/Products/Url_Master_DNN_SEO_Urls

Jeff Smith
VivoWare, Inc. - Open Source Social Networking Modules for DNN.
 
New Post
4/12/2010 9:05 AM
 

Jeff, Thank you for this information - I looked at the Infinity URLMaster and believe it might be exactly what I need for these issues. Thank you very much for the suggestion - however if it does not work for some reason I will let you knwo and I might want to look at your solution. I have also bookmarked your site (www.vivoware.com) for possible future use. I am trying to get more into the social media aspect with DNN. Again... Thank you for your sugegstion. Hope all is well.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Custom Error Page & IIS7 and DNN Issues...Custom Error Page & IIS7 and DNN Issues...


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