Results 1 to 6 of 6

Thread: Simple redirect script

  1. #1
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813

    Simple redirect script

    Hi, I am looking for a very simple script I can use to stop search engines following affiliate links on my site.

    I want something that goes like: http://www.mysite.com/link/to.php?=h....affiliate.com

    And, I will block the /link/ folder in my robots.txt.

    How would this be done?

  2. #2
    User-agent: *
    Disallow: /link

    i think that should work

  3. #3
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    I know how to do that. I am looking for a simple redirect script.

    <edit>This is probably in the wrong forum</edit>

  4. #4
    Administrator Chris's Avatar
    Join Date
    Feb 2003
    Location
    East Lansing, MI USA
    Posts
    7,055
    <?

    header("Location: $id");

    ?>

    If you put id=url in your query string.

    Also, just try rel=nofollow.
    Chris Beasley - My Guide to Building a Successful Website[size=1]
    Content Sites: ABCDFGHIJKLMNOP|Forums: ABCD EF|Ecommerce: Swords Knives

  5. #5
    Trench Warfare
    Join Date
    May 2003
    Location
    Australia
    Posts
    813
    Works a treat. Thanks Chris.

  6. #6
    You could also just put a rel="nofollow" tag in your link to the affiliate.

    <a href="myaffiliatelink" rel="nofollow">some text</a>

    Search Engines / spiders see that tag and ignore that link.
    Roger Stringer - freekrai.net
    DBStract - Build Virtual Databases

Similar Threads

  1. Simple Auto-Update Copyright Script
    By Sean in forum Website Programming & Databases
    Replies: 8
    Last Post: 11-24-2005, 08:25 PM
  2. AWS script: WSDL error
    By fatnewt in forum Advertising & Affiliate Programs
    Replies: 3
    Last Post: 10-08-2005, 11:19 PM
  3. biz-directory script
    By Percept in forum General Management Issues
    Replies: 0
    Last Post: 07-02-2004, 01:22 PM
  4. Redirect
    By k0r54 in forum HTML, CSS, Layout, and Design
    Replies: 3
    Last Post: 03-28-2004, 03:40 PM
  5. Redirect script with statistics, graphs, etc
    By emke in forum Website Programming & Databases
    Replies: 7
    Last Post: 05-20-2003, 03:44 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
  •