Redirect on 404 page not working!!

Discussion in 'Programming' started by Blinksy, Dec 18, 2007.

  1. #1
    Hi guys,

    I have put a code in the 404.shtml page to redirect to the new home page forum, however it doesnt work!!

    Can someone please help me with this?


    <!-- 
                                                                                                    <html>
    <head>
      <title>Page Has Moved to the New Forums</title>
      <meta http-equiv="Refresh" content="2; URL=http://www.streetperformance.com.au">
      <script type="text/javascript">
        location.replace('http://www.streetperformance.com.au');
      </script>
    </head>
    <body>
      <p><a href="http://www.streetperformance.com.au">Page Title</a></p>
    </body>
    </html>                                                                                                                
    --> 
    Code (markup):
     
    Blinksy, Dec 18, 2007 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    Maybe because you have the code commented?

    remove <!-- and --> and try again.

    Peace,
     
    Barti1987, Dec 18, 2007 IP
  3. kishore415

    kishore415 Well-Known Member

    Messages:
    1,462
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    160
    #3
    haha thats right..

     
    kishore415, Dec 18, 2007 IP
  4. Blinksy

    Blinksy Well-Known Member

    Messages:
    415
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #4
    Took them out still doesnt work :(

    Anything I put in the error doc doesnt work!
     
    Blinksy, Dec 19, 2007 IP