retlehs/roots — Issue #182: Proper Lighttpd rewrite rules
Author: nikmartin
Created: 2011-11-28 21:12:11+00:00
State: open

Been having a tough time getting the roots theme to work under lighttpd. The /assets/ directpry is incompatible with the suggested rewrite rules:https://github.com/retlehs/roots/wiki/Lighttpd

here is what seems to be working fine on WP 3.2.1:

url.rewrite-once = (
"^/css/(.*)$" => "/wp-content/themes/servercorps/css/$1",
"^/js/(.*)$" => "/wp-content/themes/servercorps/js/$1",
"^/img/(.*)$" => "/wp-content/themes/servercorps/img/$1",
"^/plugins/(.*)$" => "/wp-content/plugins/$1",
"^/assets/(.*)$" => "/assets/$1",
"^/(.*\.php|wp-content/|wp-admin/|wp-includes/).*" => "$0",
"^/(wp-.+).*/?" => "$0",
"^/(sitemap.xml)" => "$0",
"^/(xmlrpc.php)" => "$0",
"^/(.+)/?$" => "/index.php/$1"
)