Results 1 to 4 of 4

 

Thread: Re-directing users: Server side or Client side?

  1. #1
    Registered User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    386
    Thanks
    1
    Thanked 0 Times in 0 Posts


    Hi there,

    At the moment, my affiliate links go through re-direction scripts coded in PHP. I'm currently user "Location" commands, but have heard rumours that that may cause a problem when dropping affiliate cookies.

    So I was wondering whether I should switch my code to simply using a regular Meta Refresh.

    Can you let me know your thoughts on this please? Which methods are most commonly used in affiliate marketing today?

    Cheers,

  2. #2
    tbp
    Registered User

    Status
    Offline
    Join Date
    Dec 2006
    Posts
    1,998
    Thanks
    0
    Thanked 22 Times in 22 Posts
    There should be no problem using the header("Location:") command with cookies. I use it on several of my sites so that I can track clicks on my own site and it works fine.

    In the end its only an instruction to the browser to redirect the user, so is the same as a meta refresh.

    I know the header method is used on many affiliate sites, so you shouldn't have any problems.

  3. #3
    Registered User

    Status
    Offline
    Join Date
    Jun 2007
    Posts
    386
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks tbp - header("Location:") it is then

  4. #4
    Registered User

    Status
    Offline
    Join Date
    May 2009
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Do watch out tho - Chrome (and FF on Linux - anyone?) don't always follow the Location: headers if they have not had a Status: header first.

    Apparently the following is the "correct" way to do a redirect in PHP.

    header("Status: 301"); # 301 Moved Permanently
    header("Location: http://www.full-website-address.com/home.php");
    exit;

    That said, apart from reports from one visitor, I've never had a problem with just Location: xx.html



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 0
    Last Post: 05-11-07, 05:02 PM
  2. Server Side Includes on Win 2000 IIS 5
    By accelerator in forum Programming
    Replies: 10
    Last Post: 30-04-07, 10:42 PM
  3. Server side include with 2 servers
    By jokes4mobiles in forum Programming
    Replies: 5
    Last Post: 13-02-05, 09:34 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2