Mod_rewrite rule help needed!

Discussion in 'Apache' started by bagfull, Oct 26, 2009.

  1. #1
    Hi,

    I have one script which has the following rewrite rule which is coded by the developer only for lighttpd webserver.

    Can anyone convert the same rewrite rule in apache format?

    url.rewrite-once = ( "^/files/(.*)/(.*)" =>"/files.php?id=$1&filename=$2" )
    Code (markup):
    Waiting for ur reply,
    Thanks.
     
    bagfull, Oct 26, 2009 IP
  2. chadsmith

    chadsmith Peon

    Messages:
    82
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteRule ^files/(.+)/(.+)$ /files.php?id=$1&filename=$2 [L]
    Code (markup):
     
    chadsmith, Oct 26, 2009 IP
  3. bagfull

    bagfull Well-Known Member

    Messages:
    121
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    thanks mate!
     
    bagfull, Oct 27, 2009 IP