Rewrite rules compatible with WordPress permalinks:
# Handle 404 errors server.error-handler-404 = "/index.php" # Rewrite rules url.rewrite-final = ( # Exclude some directories from rewriting "^/(wp-admin|wp-includes|wp-content|gallery2)/(.*)" => "$0", # Exclude .php files at root from rewriting "^/(.*.php)" => "$0", # Handle permalinks and RSS feeds "^/(.*)$" => "/index.php/$1" )
Comments
Thank you for this! I had a heck of a time trying to figure out how to get lighttpd to play nice with permalinks, and your tip worked great!