below is the code needed to have mod_rewrite working on a lighttpd server
First in your
and then paste the following code (you will need to edit the
lighttpd.conf or 10-rewrite.conf enable mod_rewriteand then paste the following code (you will need to edit the
$HTTP["host"] though):
$HTTP["host"] =~ "gagrigs\.com" {
url.rewrite-final = (
# Exclude some directories from rewriting
"^/site/(wp-admin|wp-includes|wp-content|gallery2)/?(.*)" => "$0",
# Exclude .php files at root from rewriting
"^/site/(.*\.php)" => "$0",
# Handle permalinks and feeds
"^/site/(.*)$" => "/site/index.php/$1"
)
}