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 404 error page - redirecting pagesCustom 404 error page - redirecting pages
Previous
 
Next
New Post
4/25/2008 11:07 PM
 

Hi;

I had a portal which i developed from scratch and it stayed online for a while.
Now, i'm using DNN (which is working great) on the same domain.

The issue is:
A lot of web sites out there has links to artciles and other stuff on our portal, and of course, differents search engines as well.

When somebody find let's say an image gallery on our portal using Google they get:
http://www.ourdomain.com/gallery
But now that we are using DNN, the new URL is:
http://www.ourdomain.com/Gallery/tabid/92/Default.aspx

So, when the user click on that old url he will get that ugly ASP.NET error page:

Server Error in '/' Application.
The resource cannot be found.
Description: HTTP 404. The resource ...

So, my question here is how can i fix that?
Is that i way to auto redirect all broken links to the home page or setup a (nice) custom page (for each portal) telling the user to go to the Home Page?
(Just remembering, i'm not talking about Google or search engines out there but a lot of other web sites where people add links manually.)

Hope somebody can help me with that.
Thanks in advance.

 
New Post
4/26/2008 11:49 AM
 

The ideal soution from an SEO standpoint is to implement 301 redirects from your old URLs such as http://www.ourdomain.com/gallery to http://www.ourdomain.com/Gallery/tabid/92/Default.aspx. Depending on how much conrol you have over your hosting environment (IIS), there are various was to accomplish this. See this blog post for more details:

Search Engine Friendly 301 Redirects Without Touching IIS


Tom Kraak
SEO Analyst
R2integrated
 
New Post
4/26/2008 12:55 PM
 

First of all, thanks a lot. It will do the trick.
But what about the 404 error page? Is there a place on DNN where i can set it up without changing the web.config?
Because i believe too many changes on scripts will make upgrades more dificult.

 
New Post
4/26/2008 2:43 PM
 

Hi Codemaster,

In IIS, you can configure a specific 404 error target.  Look under your website -> Properties -> Custom Errors tab.  I do not believe this has changed for IIS7, but someone may correct me here.

If you are willing to make a small change to your web.config, you can also add a custom 404 target under the system.web\compilation\customErrors element.  New element would look something like <error statusCode="404" redirect="~/404.aspx"/>.  This is reasonably upgrade-friendly, but you will have to make a small change in IIS to ensure that ALL requests are redirected properly (see http://blogs.msdn.com/rahulso/archive/2007/05/18/customerrors-defaultredirect-is-not-redirecting-in-asp-net.aspx).  Without this change, IIS will not hand off all requests to ASP.NET, and ASP.NET will therefore not have the opportunity to implement the desired 404 handling.

Hope this gets you started!

Brandon


Brandon Haynes
BrandonHaynes.org
 
New Post
4/26/2008 8:33 PM
 

Got it all. Thanks a lot guys!!!

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Custom 404 error page - redirecting pagesCustom 404 error page - redirecting pages


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