dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: URL Forwarding

  1. #1
    Join Date
    Aug 2007
    Posts
    22

    Exclamation URL Forwarding

    Hi,

    I am having some trouble finding away so I can give out a short url which will forward you to a long url.

    Eg.

    http://localhost:8080/music/modules.php?name=Music&op=artist&idartist=8 ==> http://localhost:8080/music/exampleartist

    I haven't got an idea how to do this so any help will be appreciated.

    Thanks

    Ollie

  2. #2
    Join Date
    May 2005
    Posts
    2,040
    Not sure if this is what you want: TinyURL

  3. #3
    Join Date
    May 2003
    Location
    Pensacola, FL
    Posts
    635
    if you just want to redirect because of a new location for that content, or to shorten/change a uri you can use htaccess for a mod rewrite (google).

    if you are accepting variables through a query string like (artist=8), you can have php get some info from a database like (exampleartist) and then do a header redirect (google)

  4. #4
    Join Date
    May 2004
    Location
    FL
    Posts
    3,453
    I use this script. It was created to hide affiliate links but can do exactly what you want. It's VERY easy to use.

    I also have one that's written in Perl, if you're interested.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles