| Hi,
the set of rewrite rules for lighty does not work 100% because of precedence.
I use the following one, that may not be perfect either, but everything i tested is functionnal:
"^/category/([0-9]+)/digg" => "shakeit.php?category=$2",
"^/category/([0-9]+)" => "?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",
"^/story/([0-9]+)" => "story.php?id=$1",
"^/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/([a-zA-Z0-9-]+)" => "login.php?return=$1",
"^/login/([a-zA-Z0-9-]+)/([a-zA-Z0-9-]+)" => "login.php?return=$1/$2",
"^/login" => "login.php",
"^/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" => "http://www.pligg.com/forum/forumdisplay.php?f=13",
"^/rss2/([a-zA-Z0-9-]+)" => "rss2.php?status=$1",
"^/rss2" => "rss2.php",
"^/trackback/([0-9]+)" => "trackback.php?id=$1",
"^/profile" => "profile.php",
"^/admin/" => "admin_index.php"
Hope this helps! |