How to replace with value - Mod rewrite

Discussion in 'Apache' started by kks_krishna, May 13, 2007.

  1. #1
    HI,

    My url is :
    RewriteRule ^dlinks/links/.*/$ dlinks/links/linkit.php?id=$1

    Here I want replace $1 with the .* value. how can i do that?
     
    kks_krishna, May 13, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Put it in brackets (.*)

    The first set of parenthesis will then be $1, a second set would then be $2, and so on.
     
    rodney88, May 14, 2007 IP