How to do Domain Forwarding with URL Rotation?

8 replies
Here's what I want to do...

Send traffic to domain.com and have the visitor immediately redirected to either url1.com or url2.com

What is the most efficient way to do this?
#domain #forwarding #rotation #url
  • Profile picture of the author AngieRammer
    Originally Posted by ScottByers View Post

    Here's what I want to do...

    Send traffic to domain.com and have the visitor immediately redirected to either url1.com or url2.com

    What is the most efficient way to do this?
    what determines whether you want them directed to either url1.com or url2.com ?

    Should be doable with a php script.

    Contact me if you'd like it done.

    Cheers!

    Angie Rammer
    Word Demon -- and occasional php hack.
    {{ DiscussionBoard.errors[718779].message }}
  • Profile picture of the author Gene Pimentel
    One way that works great is to create an index.php file containing this:

    Code:
    <?php
    header("HTTP/1.1 301 Moved Permanently");
    header("Location: http://www.newdomain.com/page.html");
    exit();
    ?>
    {{ DiscussionBoard.errors[718856].message }}
    • Profile picture of the author AngieRammer
      Originally Posted by Gene Pimentel View Post

      One way that works great is to create an index.php file containing this:

      Code:
      <?php
      header("HTTP/1.1 301 Moved Permanently");
      header("Location: http://www.newdomain.com/page.html");
      exit();
      ?>
      Not sure how that would answer his question, Gene.
      He wants to alternate which page the redirecting page redirects to.
      He hasn't stated a criteria of why it should go to one or the other.
      Waiting on that answer.

      Cheers!

      Angie Rammer
      Word Demon -- and sometimes php hack.
      {{ DiscussionBoard.errors[718869].message }}
      • Profile picture of the author ScottByers
        More or less "random"

        I just want to do things such as split test affiliate offers, without using a landing page
        {{ DiscussionBoard.errors[718877].message }}
      • Profile picture of the author webpromotions
        If you just want it random not based on any criteria, this should work:

        <?php
        $randomnumber = rand(1,2);
        if($randomnumber == 1)
        header("Location: http://site1.com");
        else if($randomnumber == 2)
        header("Location: http://site2.com");
        ?>
        {{ DiscussionBoard.errors[718889].message }}
  • Profile picture of the author AngieRammer
    You could just set it up to alternate.

    I've never understood by people want to "randomize" rotators when simply going thru the rotation would seem to be more fair to me.

    I see Doug's got the answer for ya!

    Cheers!

    Angie Rammer,
    Word Demon -- and every once in a while, a php hack.
    {{ DiscussionBoard.errors[718891].message }}
    • Profile picture of the author ScottByers
      Originally Posted by AngieRammer View Post

      I've never understood by people want to "randomize" rotators when simply going thru the rotation would seem to be more fair to me.
      Sure, I'm just assuming that with large enough numbers, it will even out. Going through the rotation probably is more desirable.

      Thanks everyone
      {{ DiscussionBoard.errors[718918].message }}
      • Profile picture of the author Michael Mayo
        Hi Scott,

        If you want the visitors to arrive at one specific url and then be redirected
        to multiple different urls while also attaining stats then you might want to
        try this, Scientific Internet Marketing Assistant - $97 value FREE

        This is Free and there is no sign up or subscriptions required to download and
        use the script.

        Hope that Helps,
        Have a Great Day!
        Michael
        {{ DiscussionBoard.errors[718964].message }}

Trending Topics