SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Shorten URLS

  1. #1
    SitePoint Wizard jonese's Avatar
    Join Date
    Jul 1999
    Location
    Powder Springs GA (Atlanta)
    Posts
    1,238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shorten URLS

    Hey all.

    i know this has been asked before but how do i make

    index.php?referall=true&id=43

    into

    something.com/43

    or somthing.com/directory/43

    Basically what i'm trying to do is set-up a referral program but i just want people to say the url /Agent#

    any ideas?

  2. #2
    You want what? By when?? Milamber's Avatar
    Join Date
    Jan 2001
    Location
    California
    Posts
    342
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Go read this post:

    http://sitepointforums.com/showthrea...r=2#post190979


    that'll tell you how to set that up real nice. Then just have your mysql thing do whatever and then redirect them with the header() function.
    -Jeff Minard | jrm.cc - Battlefield 2 Stats


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
  •