View Single Post
  #1 (permalink)  
Old 08-25-2006, 04:24 AM
pablasso pablasso is offline
New Pligger
 
Join Date: Aug 2006
Location: Guadalajara, Mexico
Posts: 1
i rewrote the rewriting rules so pligg works with lighttpd, just update the url.rewrite-once variable inside the lighttpd.conf with this:

Code:
        url.rewrite-once = ( 
                "^/story/([0-9]+)/?" => "/story.php?id=$1",
                "^/story/([a-zA-Z0-9-]+)/?" => "/story.php?title=$1",
                "^/recommend/([a-zA-Z0-9-]+)/?" => "/recommend.php?id=$1",
                "^/category/(.*)/?" => "/?category=$1",
                "^/queued/category/(.*)/?" => "shakeit.php?category=$1",
                "^/shakeit/category/(.*)/?" => "shakeit.php?category=$1",
                "^/story/([0-9]+)/editcomment/([0-9]+)?" => "/edit.php?id=$1&commentid=$2",
                "^/story/([0-9]+)/edit/?" => "/editlink.php?id=$1",
                "^/story/([0-9]+)/modify/([a-z]+)/?" => "/linkadmin.php?id=$1&action=$2",
                "^/user/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?" => "/user.php?login=$1&view=$2",
                "^/user/([a-zA-Z0-9-]+)/?" => "/user.php?login=$1",
                "^/search/([a-zA-Z0-9-]+)/?" => "/index.php?search=$1",
                "^/login/?" => "/login.php",
                "^/login/([a-zA-Z0-9-]+)/?" => "/login.php?return=$1",
                "^/login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?" => "/login.php?return=$1/$2",
                "^/register/?" => "/register.php",
                "^/user/?" => "/user.php",
                "^/topusers/?" => "/topusers.php",
                "^/topstories/?" => "/topstories.php",
                "^/about/([a-zA-Z0-9-]+)/?" => "/faq-$1.php",
                "^/shakeit/?" => "/shakeit.php",
                "^/submit/?" => "/submit.php",
                "^/bugreport/?" => "/bugreport.php",
                "^/rss2/?" => "/rss2.php",
                "^/rss2/([a-zA-Z0-9-]+)/?" => "/rss2.php?status=$1",
                "^/trackback/([0-9]+)/?" => "/trackback.php?id=$1",
                "^/profile/?" => "/profile.php",
                "^/admin/?" => "/admin_index.php",
                "^/tagcloud/?" => "/cloud.php",
                "^/tag/(.+)/?" => "/index.php?search=$1&tag=true",
                "^/sneak/?" => "/sneak.php",
                "^/pliggadmin/?" => "/admin_index.php",
                "^/logout/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)/?" => "/login.php?op=logout&return=$1/$2"
)
put it inside this, if you have more than 1 site

Quote:
$HTTP["host"] =~ "^www.(example|example2).com$" {
}
its not 100% tested, but seems to work fine for pligg b7, hope it helps someone
Reply With Quote