1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple PHP Scripts for Affiliate Type Stuff

Discussion in 'PHP & Perl' started by westin, Sep 26, 2009.

  1. westin

    westin Newbie

    Joined:
    May 31, 2009
    Messages:
    2
    Likes Received:
    0
    When redirecting to a URL, anyway to ignore a piece of the URL by the receiving php page? Example: You see a URL with a link such as: http://www.mywebsite.com/folder1/test Anyway to send a person to the index of folder1 and ignore the 'test' portion of the URL completely? Thanks!
     
    Last edited: Sep 26, 2009
  2. 44blackhatters

    44blackhatters Registered Member

    Joined:
    Jan 21, 2008
    Messages:
    52
    Likes Received:
    3
    That's a mighty fine idea. I think Aweber automatically cloaks my links for me, and since the email has to come from their server, I don't know how much you can manipulate it. I'm not a programmer though, so I could be missing something.

    If you were willing to use your own autoresponder, I'm sure a scripter could do this.
     
  3. Alex Brooks

    Alex Brooks BANNED BANNED

    Joined:
    Mar 17, 2009
    Messages:
    1,199
    Likes Received:
    297
    Why don't you just send them to site.com/folder1 instead of site.com/folder1/test ?
    Or you could just add a index file in /test to redirect to /folder1
     
  4. westin

    westin Newbie

    Joined:
    May 31, 2009
    Messages:
    2
    Likes Received:
    0
    Thanks for the info...that worked.
     
  5. webpapa

    webpapa Newbie

    Joined:
    Jul 25, 2008
    Messages:
    29
    Likes Received:
    8
    Location:
    INDIA
    Or you can use htaccess redirects