Could someone help me with mod_rewrite? Please

Discussion in 'HTML & Website Design' started by tropico, Jun 19, 2008.

  1. #1
    Hi,
    I need some help. Could someone write/help me write this rewrite rule/rules.

    I have fallowing URL

    sitename.com/index.php?fid=(0-99)&id=some+text

    and I'd like to make something like this

    sitename.com/word, depending on "fid" number/some text w/o +'s

    Could anyone help?
     
    tropico, Jun 19, 2008 IP
  2. Deidredup

    Deidredup Well-Known Member

    Messages:
    119
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    103
    #2
    What software are you using? And why don't you just set up a redirect in CPanel?
     
    Deidredup, Jun 19, 2008 IP
  3. tropico

    tropico Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It's a custom php script. It's a classified board to be exact
    When saying "&id=some+text" i meant "&id=some+different+text+each+time"
    It would mean that I would have to set up hundreds of redirects
     
    tropico, Jun 19, 2008 IP
  4. tropico

    tropico Peon

    Messages:
    87
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Could anyone help?
     
    tropico, Jun 28, 2008 IP