Having a redirect

Discussion in 'HTML & Website Design' started by tridean, Sep 12, 2006.

  1. #1
    Hello,
    I was wondering how easy it would be to have my htm pages directed to my html pages.

    I have a web site I built in Front Page and have since built it in X-SitePro, which now means all the pages are html instead of htm.

    I've changed all my adwords campaigns to match but there are other links out there which will still have the htm.

    Because of this, I was wondering if there was a way to have those htm pages automatically redirect to the html pages.

    Cheers
    Dean
     
    tridean, Sep 12, 2006 IP
  2. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    It is very easy with Apache and more difficult with IIS. What server do you use ?

    Jean-Luc
     
    Jean-Luc, Sep 12, 2006 IP
  3. tridean

    tridean Guest

    Messages:
    285
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,
    Not quite sure what you mean by server. I use hostgator for my hosting.

    I have temporarily fixed it by inserting some code into my meta tags of the htm pages for now. But the visitor still sees the old pages for about 1 second, even though the code is set to zero

    Cheers
    Dean
     
    tridean, Sep 13, 2006 IP
  4. frankcow

    frankcow Well-Known Member

    Messages:
    4,859
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    180
    #4
    frankcow, Sep 13, 2006 IP
  5. PopTart

    PopTart Guest

    Messages:
    14
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Tridean,

    Sounds like you used a meta refresh code set to zero to redirect your htm to html pages. This can have undesired effects on your website regarding duplication etc and the actual refresh code is not the status code that it produces that you need. It gives a temporary header. Not a permanant one.

    A meta refresh is a html variant of a temporarily moved serverside script. Even BMW Germany were slapped by google for using inappropriate redirecting.

    Ask your host provider to put into place a serverside script or whatever method they use based on the servers they use to do such redirecting. But make sure that they have done a permanent script, not a temporary one. You can check to see if implemented properly by using a header tool.

    Get the tool to call the htm page. If a permanent redirect is displayed to the html page, that is what you want.
     
    PopTart, Sep 14, 2006 IP
  6. tridean

    tridean Guest

    Messages:
    285
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Thanks everyone. I will just contact Hostgator, because it's all double dutch to me
     
    tridean, Sep 14, 2006 IP
  7. tridean

    tridean Guest

    Messages:
    285
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Now I'm really confused - I just contacted Hostgator and they told me that what I am doing with my meta refresh is the best way to do it, especially if I want to retain search engine placement. This is becoming a bit of a headache.
     
    tridean, Sep 14, 2006 IP
  8. tridean

    tridean Guest

    Messages:
    285
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #8
    <meta http-equiv="Refresh" content="0;url=http://www.atradersuniverse.com/trendlines.html">

    This is the code I'm using at the moment where 'trendlines' is the name of the page. I have about 25 pages with this in it.
     
    tridean, Sep 14, 2006 IP