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 ...redirect missing page request to the home pageredirect missing page request to the home page
Previous
 
Next
New Post
10/9/2008 1:37 AM
 

I've ported a site to DNN my only problem ATM is that when people come via google etc, the pages in googles index no longer exist.  Since I dont want users getting an ugly error message,  How do I set up DNN to redirect all missing paged to the home page.

 

regards

 

 
New Post
10/9/2008 6:17 AM
 

The easiest way to do this is via IIS. 

First you have to find the path to the 404.htm error page (steps are for IIS 5 and 6)

  1. Open IIS
  2. Expand the nodes until you see your website
  3. Right click the website and select Properties
  4. Click the Custom Errors tab
  5. Find the 404 error and click edit view its path
  6. Copy the path as a backup
  7. Using Windows Explorer navigate to the 404 error page
  8. Copy the page
  9. Rename it 404CustomRedirect.htm

Next you need to modify the 404CustomRedirect.htm page to support redirects

  1. Open 404CustomRedirect.htm
  2. Add the following meta tag to the site (be sure to change the URL to your site)
    <meta http-equiv="refresh" content="0;url=http://www.YourSite.com">

Next you need to update IIS to use this new page for the redirects

  1. Open IIS
  2. Expand the nodes until you see your website
  3. Right click the website and select Properties
  4. Click the Custom Errors tab
  5. Find the 404 error and click Edit view its path
  6. Change the file name to 404CustomRedirect.htm
  7. Click OK and OK

Now try accessing one of the old sites URLs

NOTE: If you want to map the URLs so the old URL redirects to a specific new URL you can do this by creating a ASP.Net page for the redirect rather than a htm page and then do a switch/select case on the referrer URL and have it redirect to the page based on a matching referrer URL.

I hope this helps you.


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
10/9/2008 1:30 PM
 

Thanks Robert I know that method but I need a DNN solution.

 
New Post
10/10/2008 1:42 AM
 

 Unfortunately, I do not know of a built in DNN way of mapping URLs in this way. 


Best Regards,

Robert J Collins | Co-Founder & President

Netlogic Corporation

 
New Post
10/15/2008 3:41 AM
 

 HI

Its easy to show custom error page in the DNN site.

 

   1. first u have to check "ErrorPage.aspx" in DNN Root folder,  if its have modify that page how u want to display.

In IIS Settings

u know already settings in the IIS.

 1. Select 404 custom error tab

 2. Click Edit Properties

3. Select "Message Type" as URL 

4. Type the URL like "/ErrorPage.aspx" in the text box.

5. click Ok and Ok

 

Thats all

 

 

 

 


Velmurugan S
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...redirect missing page request to the home pageredirect missing page request to the home page


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