Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Ads  
Iron Speed Designer is a software development tool for building database, reporting, and forms applications for .NET without hand-coding.
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Configure It! (...  Custom 404 error page - redirecting pages
Previous Previous
 
Next Next
New Post 4/25/2008 9:07 PM
Resolved
User is offline CodeMaster2008
8 posts
10th Ranked


Custom 404 error page - redirecting pages 

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 9:49 AM
User is offline Tom Kraak
360 posts
seablick.com
8th Ranked






Re: Custom 404 error page - redirecting pages 

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
Seablick Consulting LLC
DNN OpenForce 08: Intro to SEO with DNN
 
New Post 4/26/2008 10:55 AM
User is offline CodeMaster2008
8 posts
10th Ranked


Re: Custom 404 error page - redirecting pages 

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 12:43 PM
User is offline Brandon Haynes
694 posts
everysport.net
7th Ranked


Re: Custom 404 error page - redirecting pages 

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 6:33 PM
User is offline CodeMaster2008
8 posts
10th Ranked


Re: Custom 404 error page - redirecting pages 

Got it all. Thanks a lot guys!!!

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Configure It! (...  Custom 404 error page - redirecting pages
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke Web Hosting w/ ASP.NET 3.5
Unlimited email boxes, Unlimited databases, Unlimited domains. Plans start at $4.97
www.MyWinHosting.com
SteadyRain
Founded in 1999, SteadyRain has extensive experience delivering Internet technology strategies and solutions for a diverse client base, ranging from Fortune 500 firms to successful start-ups.
www.steadyrain.com
AfterImage Internet Consulting and SEO Services
AfterImage provides search engine optimization (SEO), Internet consulting and hosting services for the Windows platform (IIS, ASP, SQL Server).
www.afterimage.nl/

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP