How to Change URLs from dynamic?

Discussion in 'Programming' started by chrissatchwell, Nov 16, 2006.

  1. #1
    I want to change all the dynamic URLs on photo pages on my site. Here is an example:

    freestockimages.net/details.php?gid=30&sgid=&pid=71

    Ideally I would like it to look something like this:

    freestockimages.net/building-in-san-francisco-g30.html

    Does anybody have any idea how I could possibly do that? Or is there any resources that might show me?

    Thanks
     
    chrissatchwell, Nov 16, 2006 IP
  2. ServerUnion

    ServerUnion Peon

    Messages:
    3,611
    Likes Received:
    296
    Best Answers:
    0
    Trophy Points:
    0
    #2
    If you are on a unix server, look into mod-rewrite. If you use windows hosting, research ASAPI-rewrite. Good luck..
     
    ServerUnion, Nov 16, 2006 IP
  3. commandos

    commandos Notable Member

    Messages:
    3,648
    Likes Received:
    329
    Best Answers:
    0
    Trophy Points:
    280
    #3
    i like the "Good luck.." part :D

    only someone who messed with the mod-rewrite issue will know what u mean :)


    search google ... and try this if u want

    http://www.workingwith.me.uk/articles/scripting/mod_rewrite

    (its not the best , but its the one that i found with less ads :))
     
    commandos, Nov 16, 2006 IP
  4. Nick_Mayhem

    Nick_Mayhem Notable Member

    Messages:
    3,486
    Likes Received:
    338
    Best Answers:
    0
    Trophy Points:
    290
    #4
    Nick_Mayhem, Nov 16, 2006 IP
  5. chrissatchwell

    chrissatchwell Peon

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Cheers for the help guys.

    It looks quite complex at first glance so Ill start reading now!

    Thanks again.
     
    chrissatchwell, Nov 17, 2006 IP