PDA

View Full Version : Lightpd + rewrite rules


floggerss
02-12-2011, 05:40 PM
i have lightpd and i want to use it with vbseo. I have add this config file:

$HTTP["host"] == "stylers.com.ar" {
server.document-root = "/var/www/"
url.rewrite-once = (
"^(sitemap.*\.(xml|txt)(\.gz)?)$" => "/vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1",
"^((admincp|modcp|clientscript|cpstyles|images|cust omavatars)/.*)$" => "$1",
"^(vbseo/resources/(css|images|scripts)/.*)$" => "$1",
"^(/favicon\.ico|/robots\.txt|.*clear\.gif)$" => "$1",
"^(.+)\?(.*)$" => "/vbseo.php?$2",
"^(.+)$" => "/vbseo.php"
)
}

And i have 404 error. I i delete this file and enable the mod re write in the lightpd.conf file, it gives me an error that it can be enabled two times.

Can you helpo me.