Rewrite url + php genius

Discussion in 'PHP' started by mdrobiul, Feb 7, 2009.

  1. #1
    I know how to make clean url using rewrite engine for //www.sitename.com/index.php?ca...cat=Serverside

    but if my current site url is generated like this: user.php?id.250 and news.php?id.450 or download.php?id.450

    I want to make clean url from content (title in the content) from user.php?id.250 and news.php?id.450

    .com/download.php?id.450.54, will be .com/download/games/nfs-2/

    note that "nfs-2" and "games" did not come from url and it came from the page content..

    How to do it ? just give idea...thanks
     
    mdrobiul, Feb 7, 2009 IP
  2. crivion

    crivion Notable Member

    Messages:
    1,669
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    210
    Digital Goods:
    3
    #2
    by checking id into db, you should make a select into db to get the game-name
    that's my suggestion goodluck further
     
    crivion, Feb 7, 2009 IP
  3. raghunathj

    raghunathj Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Well use switch function to do that happening.
    Also u can use the DB too.
     
    raghunathj, Feb 8, 2009 IP