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 ...404 Error?404 Error?
Previous
 
Next
New Post
7/6/2010 5:09 AM
 
Hi,
i'm facing a problem with DNN/ASP response to invalid URLs:
1) HTML pages not found, will be handled by the IIS and return a 404 error
2) .aspx pages (exception is the DNN default.aspx), will return a 302 error (Moved temporarily) and then redirect the user to the valid DNN error page.
3) invalid URLs ending with "/default.aspx" will will also return a 302 error and then redirected the user to the valid home page

In the last scenario, the user may be confused, cause it is not transparent to him what happend.
Moreover, In case of the last two responses, search engines continue to look up the pages and
a) index the error page (error type 2)
b) Google's crawler responds with a "soft 404 error" (error type 3) (visible in Google Webmaster tools: crawling errors)

So: Is there any way to respond with a straight 404 error and a custom error page?
your's
felix
 
New Post
7/6/2010 5:32 AM
 
Hi Felix, check out UrlMaster from www.ifinity.com.au, which provides you with a number of options to specify redirection.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/6/2010 5:57 AM
 
Sebastian Leupold wrote:
Hi Felix, check out UrlMaster from www.ifinity.com.au, which provides you with a number of options to specify redirection.

 Hi Sebastian/Felix

I've just released the latest version of the Url Master module, which for the first time has 'proper' built-in 404 Error Handling.

This means that, for a 404 error, it will:
- show a page you designate in the settings - this can be any page in your DNN site or a custom page you already have.  Note that if you have multiple portals you can specify a custom 404 page for each portal
- send back a 404 response code back to the requesting client.    If this is a search engine, then it will be a 'hard' 404, and you won't fall into problems with the Google 'soft 404' errors
- optionally keep a log of the 404 errors so you can see if there is common pages being requested.

I've covered this in more depth in my blog post Real 404 Error Handling in DotNetNuke

To my understanding there is no other way currently available to handle 404 errors in an integrated way like this with DotNetNuke.  Most 404 handling involves using the asp.net error handling, which does a 302 redirect to a normal page, giving you a 302/200 response code, which ends up in indexed incorrect pages, and Google starts guessing at which pages are the 404 error pages, usually incorrectly.

Check it out : this link goes to an invalid page : http://url-master.com/deadpage.aspx

You will see the 404 error page, and if you run a Http trace you'll see that it returns a 404 error status.

You can get the latest version of the Url Master module here : http://www.ifinity.com.au/Products/Url_Master_DNN_SEO_Urls

 
New Post
7/6/2010 11:20 AM
 
Bruce:

Keep in mind that, with the integrated pipeline in IIS 7.x, all errors can be processed through the ASP.NET handlers, including HTML, etc.  Also, IIS 7.x has the URL Rewriter module available that can pre-empt some of these errors and/or reditrect them.

By the way, URLMaster rocks!  :)

Jeff
 
New Post
7/6/2010 6:34 PM
 
Jeff - essentially that is what the new version is doing - handling the 404 error within the code (rather than externally via a web.config setting).
The problem with using native IIS rewriting is that is has no idea what is/isn't a valid DNN page url - so you can't catch 404 errors externally to the DotNetNuke framework, because only DNN knows if /valid-page.aspx is OK and /invalid-page.aspx is not.  The other big step forward is being able to show a Dnn page for the 404 error page and still emit the 404 status code.    Because another part of the problem with an external (to dnn) solution is that it's difficult to implement a portal-specific 404 handler, because asp.net is designed around one application=one website, whereas DNN is one application=multiple sites.

But thanks for the support!
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...404 Error?404 Error?


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