Good Javascript to redirect visitors?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • More Booze
    Confirmed User
    • Mar 2004
    • 5116

    #1

    Good Javascript to redirect visitors?

    The only javascript I've found for this is this one:

    Code:
    <SCRIPT LANGUAGE="JavaScript">
    <!-- 
    window.location="http://www.yourdomain.com/";
    // -->
    </script>
    And that one looks like it won't last long in the SE's.

    Anyone know of a better one that doesn't look so obvious that its a redirect script?
  • More Booze
    Confirmed User
    • Mar 2004
    • 5116

    #2
    ** bUmP **

    Comment

    • Gungadin
      Confirmed User
      • Aug 2005
      • 444

      #3
      I know you are looking for javascript, but since you have no replies... PHP has always been search engine friendly for me...

      PHP Code:
      <?PHP
      
      header("Location: http://www.yourdomain.com/page.html");
      exit;
      
      ?>
      or, even better and transparent to a search engine:

      PHP Code:
      <?PHP
      
      include "/path/to/the/other/page.html";
      exit;
      
      ?>
      The GFY popularity contest scoreboard

      Comment

      • jjjay
        Registered User
        • Jun 2005
        • 1813

        #4
        I'm not entirely sure what you're trying to do, but if you're trying to trick the engines, good luck

        maybe encrypt the code? maybe use a flash redirect?

        Comment

        Working...