Advanced Search

Results 1 to 3 of 3

Thread: how to shorten affiliate url

  1. #1
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how to shorten affiliate url

    please help me.

    I want to make custom url

    if I write http://www.example.com/ben
    it redirect to http://www.example.com/index.php?id=ben

    Thanks

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    You would want to look into using .htaccess to do this. Although, another option would be to make the folder:

    http://www.example.com/ben/

    and in that, place index.php (which would just be a header redirect to the other page).

    Other than that, htaccess is the way to go.

    Hope this helps.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Apr 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    i have tried using .htaccess

    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^(.*) http://example.com/index.php?id=$1

    when i write link http://www.example.com/ben

    error. Error said I don't have permission to access this index, dan it redirect to http://www.example.com/index.php&#37...ex.php%3id=ben

    thanks

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
  •