Skip to content

Instantly share code, notes, and snippets.

View jamesvl's full-sized avatar

James van Lommel jamesvl

  • Semsee, Inc.
  • New York, NY
View GitHub Profile
@jamesvl
jamesvl / gist:910325
Created April 8, 2011 17:32
Web server rewrite rules for using klein PHP router

URL-rewriting for klein PHP router

Why rewrite URLs? Check Wikipedia

Apache

Make sure AllowOverride is on for your directory, or put in httpd.conf

# Apache (.htaccess or httpd.conf)

RewriteEngine On