how to redirect a webpage to another webpage using html code??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • arunkumar2006
    New Member
    • Jul 2007
    • 9

    how to redirect a webpage to another webpage using html code??

    i want to redirect visitors from my old website url to a new url coz my website has been moved. how i can do it using html code??
  • arunkumar2006
    New Member
    • Jul 2007
    • 9

    #2
    please reply someone.

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      The only two ways to do it is with a link inserted into your home page to your new site or with "redirect" on your server.

      Comment

      • arunkumar2006
        New Member
        • Jul 2007
        • 9

        #4
        Originally posted by drhowarddrfine
        The only two ways to do it is with a link inserted into your home page to your new site or with "redirect" on your server.
        but i have seen mny websites that redirect in 5 seconds to a new webpge. how they do it??

        Comment

        • drhowarddrfine
          Recognized Expert Expert
          • Sep 2006
          • 7434

          #5
          Ah, yes, the third way. Javascript.

          Comment

          • bhosalevivek
            New Member
            • May 2007
            • 3

            #6
            Originally posted by arunkumar2006
            i want to redirect visitors from my old website url to a new url coz my website has been moved. how i can do it using html code??
            <meta http-equiv="refresh" content="0;url= http://www.yoursite.co m/yourpage.html">

            add this tag in<head>.
            and how much time you want to redirect with another page edit in "content" part, it's in second.

            Comment

            • drhowarddrfine
              Recognized Expert Expert
              • Sep 2006
              • 7434

              #7
              Very good. I had forgotten all about that.

              Comment

              • inspireuk
                New Member
                • Jul 2007
                • 12

                #8
                Javascript Time Delay

                Code:
                <html>
                <head>
                <script type="text/javascript">
                <!--
                function delayer(){
                    window.location = "../javascriptredirect.php"
                }
                //-->
                </script>
                </head>
                <body onLoad="setTimeout('delayer()', 5000)">
                <h2 >Prepare to be redirected!</h2>
                <p>This page is a time delay redirect, please update your bookmarks to our new 
                location!</p>
                
                </body>
                </html>
                Source: http://www.tizag.com/javascriptT/javascriptredir ect.php

                Comment

                Working...