Redirect 301

Discussion in 'Site & Server Administration' started by e10, Oct 16, 2007.

  1. #1
    I don't understand why I have a few pages set up for a 301 permanent redirect and they work just fine but this last one, set up in exactly the same way, does not.

    These work...

    redirect 301 /links.htm http://www.domain(dot)com/resources.htm
    redirect 301 /folder/topic.htm http://www.new-domain(dot)com/folder/topic.htm

    And this doesn't...

    redirect 301 /old%20page.htm http://www.domain(dot)com/new-page.htm

    The filename I want to change had two words un-hyphenated so the url renders as old%20page.htm. I've tried both using the %20 and leaving just the space. With the %20 nothing happens at all, without it I get a 500 error.

    This is doing my head in so any advice would be much appreciated.
     
    e10, Oct 16, 2007 IP
  2. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I would try this:
    redirect 301 "/old page.htm" http://www.domain.com/new-page.htm
    Code (markup):
    Jean-Luc
     
    Jean-Luc, Oct 16, 2007 IP
    e10 likes this.
  3. e10

    e10 Well-Known Member

    Messages:
    2,250
    Likes Received:
    155
    Best Answers:
    0
    Trophy Points:
    185
    #3
    Jean Luc,

    You did it! Many thanks. :)
     
    e10, Oct 17, 2007 IP