.php carry over assign link to use?..

Discussion in 'Black Hat SEO' started by 420friendly, May 5, 2012.

  1. 420friendly

    420friendly Regular Member

    Joined:
    Nov 12, 2009
    Messages:
    248
    Likes Received:
    68
    Location:
    Oz
    I have a how to .php question for you php pro's...

    Say someone hits one of my pages example,com/widgets and if they click on the "join here" link the next page will then be (example,com/join.php) then on that page is a link to "continue" that will be what I want it to be depending on what page the customer comes from. Then if they visit example.com/farts and click the "join here" link it goes to the same page (example,com/join.php) but the link provided to "continue" is different.

    Thanks Guys!
     
  2. Walker2k11

    Walker2k11 Junior Member Premium Member

    Joined:
    Mar 18, 2011
    Messages:
    104
    Likes Received:
    16
    Generally i just pass variables in the url to deal with stuff like that
     
  3. lanbo

    lanbo Jr. VIP Jr. VIP

    Joined:
    Aug 23, 2009
    Messages:
    3,690
    Likes Received:
    618
    Home Page:
    Use an .htaccess rewrite to do this!
     
  4. 420friendly

    420friendly Regular Member

    Joined:
    Nov 12, 2009
    Messages:
    248
    Likes Received:
    68
    Location:
    Oz
    examples?...
     
  5. lanbo

    lanbo Jr. VIP Jr. VIP

    Joined:
    Aug 23, 2009
    Messages:
    3,690
    Likes Received:
    618
    Home Page:
    here try something like this:
    RewriteEngine on
    RewriteRule ^([a-zA-Z0-9_-]+)/$ join.php$2