Question about Redirect codes

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DeloreanRider99
    Confirmed User
    • Aug 2005
    • 269

    #1

    Question about Redirect codes

    Which redirect code is better to use, Meta redirect or Javascript?

    [email protected]
    ICQ 283942371

    Free Partner Accounts
  • Wizard-X
    Confirmed User
    • Aug 2004
    • 111

    #2
    As I remember it, meta redirects cause issues with search engines so javascript is usually the way to go for an instant redirect.

    Comment

    • DeloreanRider99
      Confirmed User
      • Aug 2005
      • 269

      #3
      Originally posted by Wizard-X
      As I remember it, meta redirects cause issues with search engines so javascript is usually the way to go for an instant redirect.
      Thanks. I was using Meta redirect for my tgp, but about every few clicks or page refreshes, the page would not load.

      This is the js code that I'm now using, is this the right one?
      <html>
      <head>
      <title>Kelly Knows Best - Your Free Source For Todays Hottest Porn</title>
      </head>

      <body>

      You will be redirected to http://www.kellyknowsbest.com.

      <script language="JavaScript">

      var URL = "http://www.kellyknowsbest.com/tgp.html";

      self.location = URL;

      </script>

      </body>
      </html>
      Last edited by DeloreanRider99; 03-22-2006, 08:38 AM.

      [email protected]
      ICQ 283942371

      Free Partner Accounts

      Comment

      • Wizard-X
        Confirmed User
        • Aug 2004
        • 111

        #4
        that should work but I am no javascript expert. I have seen javascript be flakey especially in other browsers like firefox. Try referencing it using 'top' instead of 'self'. Theoretically in your case they are the same thing but browsers are flakey..

        Comment

        • DeloreanRider99
          Confirmed User
          • Aug 2005
          • 269

          #5
          Originally posted by Wizard-X
          that should work but I am no javascript expert. I have seen javascript be flakey especially in other browsers like firefox. Try referencing it using 'top' instead of 'self'. Theoretically in your case they are the same thing but browsers are flakey..
          I'll give that a try, thanks.

          [email protected]
          ICQ 283942371

          Free Partner Accounts

          Comment

          • babsy
            Confirmed User
            • Mar 2006
            • 282

            #6
            I typically do my redirects with php. Doing something like...

            Code:
            <?
            header("Location: your.url");
            ?>
            ...has the benefit of sending an actual 302 before forwarding the client browser, and of course, because it's PHP and not a simple HTML thing, you've got control structures and branching abilities. Google recommend in their own documentation that if you must redirect a browser to another page, then using a 302 is the best practice - this may change with the 302 issues currently swirling around the place.

            One note however, this method will not work if you are outputting something to the client's browser before the forwarding.

            CASH APARTMENT V2 IS HERE!
            NATS POWERED, 60-70% ON ALL REBILLS, FREE CONTENT, MGPS, FHGS, RETAINING MEMBERS NETWORK!
            A SIMPLE NO B.S PROGRAM - ICQ 239 806 698

            Comment

            • Kal-el
              Registered User
              • Nov 2005
              • 76

              #7
              Originally posted by babsy
              I typically do my redirects with php. Doing something like...

              Code:
              <?
              header("Location: your.url");
              ?>
              ...has the benefit of sending an actual 302 before forwarding the client browser, and of course, because it's PHP and not a simple HTML thing, you've got control structures and branching abilities. Google recommend in their own documentation that if you must redirect a browser to another page, then using a 302 is the best practice - this may change with the 302 issues currently swirling around the place.

              One note however, this method will not work if you are outputting something to the client's browser before the forwarding.

              Sorry about my ignorance, but what you mean with "302" ?


              Adult Sex Store - Take a look to our sex store, we have a huge collection of the best adult DVDs on internet

              Sex Store where you can get the last Adult DVDs from the xxx entertainment

              Comment

              • babsy
                Confirmed User
                • Mar 2006
                • 282

                #8
                Originally posted by Kal-el
                Sorry about my ignorance, but what you mean with "302" ?
                302 is an example of a HTTP header code that gets sent to the client's browser. It tells the browser that the page you're viewing is temporarily redirected to this new one. A 301 header tells the browser it is a permanent redirection.

                Code:
                <?
                header("HTTP/1.0 301 Moved Permanently"); 
                header("Location: your.url");
                ?>
                Doing the redirection like that will send a 301. As to which one you want to use, your guess is as good as mine. According to google themselves (google.com/webmasters/3.html), they very definitely will crawl 301s, however, they will crawl it as the URL you redirect TO. As things currently stand with google, if you send a 302, they crawl it as the URL you redirect FROM - which is the source of the whole 302 Redirect scandal that has been going on for the past while. I really have no idea how google plan on fixing the problem. Perhaps if the content you're 302ing to is on the same domain they'll be fine with it, but if it crosses domains, it gets a page rank hit? Who really knows. Suffice to say, these issues are far beyond the scope of this thread.

                CASH APARTMENT V2 IS HERE!
                NATS POWERED, 60-70% ON ALL REBILLS, FREE CONTENT, MGPS, FHGS, RETAINING MEMBERS NETWORK!
                A SIMPLE NO B.S PROGRAM - ICQ 239 806 698

                Comment

                • JasonB
                  Confirmed User
                  • Nov 2001
                  • 1183

                  #9
                  php or javascript is best

                  Comment

                  Working...