Skip to content

Instantly share code, notes, and snippets.

@magnusnordlander
Created January 9, 2012 23:14
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save magnusnordlander/1585551 to your computer and use it in GitHub Desktop.
Save magnusnordlander/1585551 to your computer and use it in GitHub Desktop.
Lighty Rewrite for Symfony2
# If you're having trouble creating a good rewrite for Symfony2 apps in Lighttpd, this seems to do the charm. It even works with query string parameters.
url.rewrite-if-not-file = (
"^/(?!app_[dev|test]+\.php/)[^\?]*(\?.*)?$" => "/app.php$1"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment