Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Aug 10th, 2012  |  syntax: None  |  size: 0.31 KB  |  hits: 7  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. Lighttpd Rewrite Rule (match not having a period)
  2. uri = "/people/add"
  3. Should run the rule.
  4.  
  5. uri = "/js/main.js"
  6. Should NOT run the rule.
  7.  
  8. uri = "/people.php"
  9. Should NOT run the rule.
  10.        
  11. $HTTP["host"] =~ "^(my.domain.com)$" {
  12.     url.rewrite-once = (
  13.             "^/(.*)$" => "index.php/$1"
  14.     )
  15. }
  16.        
  17. "^/([^.]+)$"