Mod_Rewrite help

Discussion in 'Apache' started by NaSh123, Mar 24, 2007.

  1. #1
    Does anyone see anything wrong with this piece of code?

    RewriteRule ^layouts/(.*)$ index.php?app=myspacelayouts&action=get?id=$1 [L]

    What it basically should do is look in the layouts folder access the get.php file using my index.php template that is in another directory.

    Doesn't seem to be working right but i can't figure out whats wrong. Any help is appreciated.
     
    NaSh123, Mar 24, 2007 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    I think you need to backspace your '/' character, so:

    RewriteRule ^layouts\/(.*)$ index.php?app=myspacelayouts&action=get?id=$1 [L]

    Also, maybe your need to backspace your '?' characters too (not sure about this).
     
    ajsa52, Mar 24, 2007 IP