Apache Rewrite Rule -> Lighttpd

Discussion in 'Apache' started by turiel, Nov 5, 2007.

  1. #1
    Hey,

    Mod_Rewrite is the bane of my existance so I'm hoping someone else can help me out.

    Here's what I've got in Apache .htaccess (its quite a simple rule):

    
    <IfModule mod_rewrite.c>
       RewriteEngine on
       RewriteRule    ^$ app/webroot/    [L]
       RewriteRule    (.*) app/webroot/$1 [L]
    </IfModule>
    
    Code (markup):
    I need to "rewrite" this (ohohoho) to a lighttpd ModRewrite rule. Here's what I've tried:

    
    url.rewrite = ("^/$" => "app/webroot/", "^/(.*)" => "app/webroot/$1")
    
    Code (markup):
    Which doesn't work. Any help?
     
    turiel, Nov 5, 2007 IP
  2. turiel

    turiel Peon

    Messages:
    148
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Any ideas on this? Maybe everyone in this forum are die-hard Apache supporters :)
     
    turiel, Nov 7, 2007 IP
  3. Ladadadada

    Ladadadada Peon

    Messages:
    382
    Likes Received:
    36
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Not quite, but there ARE a lot more Apache users out there. :p

    Have you tried /app/webroot/$1 ? (Leading slash)

    I assume there's a good reason why you don't just change the DocumentRoot to /app/webroot...
     
    Ladadadada, Nov 10, 2007 IP