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 ...Can I set up an index.htm page?Can I set up an index.htm page?
Previous
 
Next
New Post
8/2/2007 10:41 PM
 

Here's the deal - I have rebuilt my entire site with DNN some time ago, and love it.  One problem I am experiencing is that I have old links to my site floating around ... most of these don't matter .. however, a couple of key areas (like Google Local Maps) is dragging in updating my listed homepage from the prior:

Ex:  www.example.com/index.htm

...to the new basic URL:

EX  www.example.com

I was therefore wondering if there was an easy way for me to create an .htm file or page on my DNN site that simply redirects any browser who hits that old .htm link  ( www.example.com/index.htm ) to my new home page.  Anybody? 

 
New Post
8/3/2007 4:20 AM
 

BaffledDuck wrote

Here's the deal - I have rebuilt my entire site with DNN some time ago, and love it.  One problem I am experiencing is that I have old links to my site floating around ... most of these don't matter .. however, a couple of key areas (like Google Local Maps) is dragging in updating my listed homepage from the prior:

Ex:  www.example.com/index.htm

...to the new basic URL:

EX  www.example.com

I was therefore wondering if there was an easy way for me to create an .htm file or page on my DNN site that simply redirects any browser who hits that old .htm link  ( www.example.com/index.htm ) to my new home page.  Anybody? 

not from DNN, but of course you can create the file yourself in the root of site. An other option would be to point the file not found error (404) in IIS to an aspx file that permanently redirects (with response code 301) to the homepage. The aspx file would look like this:

<%@ Page Language="vb" AutoEventWireup="false"%>
<script runat="server">
        Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
             Response.Status = "301 Moved Permanently";
             Response.AddHeader("Location","/");
    End Sub
</script>

Some more info can be found here: http://www.mcanerin.com/EN/articles/301-redirect-404-error.asp


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Can I set up an index.htm page?Can I set up an index.htm 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