PHPBB SEO lighttpd

PHPBB SEO lighttpd

Standartinė MKas » 2011-06-16 15:14:33

Sveiki,

kadangi naudoju phpbb forumą ir phpbb-seo papildymą, tačiau neseniai perėjau iš apache į lighttpd, tai noriu pasidalinti formule kaip htaccess perrašyti į lighttpd formatą:

Kodas: Pasirinkti visus
$HTTP["host"] == "jusu.phpbb.forumas.lt" {
    url.rewrite-if-not-file = (
   "^/(forum|[a-z0-9_-]*-f)([0-9]+)(-([0-9]+))?\.html" => "/viewforum.php?f=$2&start=$4",
   "^/(forum|[a-z0-9_-]*-f)([0-9]+)/(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html" => "/viewtopic.php?f=$2&t=$4&start=$6",
   "^/([a-z0-9_-]*)/?(topic|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$" => "/viewtopic.php?forum_uri=$1&t=$3&start=$5",
   "^/resources/[a-z0-9_-]+/(thumb/)?([0-9]+)" => "/download/file.php?id=$2&t=$1",
   "^/(member|[a-z0-9_-]*-u)([0-9]+)\.html" => "/memberlist.php?mode=viewprofile&u=$2",
   "^/^(member|[a-z0-9_-]*-u)([0-9]+)-(topics|posts)(-([0-9]+))?\.html" => "/search.php?author_id=$2&sr=$3&start=$5",
   "^/(group|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html" => "/memberlist.php?mode=group&g=$2&start=$4",
   "^/post([0-9]+)\.html" => "/viewtopic.php?p=$1",
   "^/active-topics(-([0-9]+))?\.html" => "/search.php?search_id=active_topics&start=$2&sr=topics",
   "^/unanswered(-([0-9]+))?\.html" => "/search.php?search_id=unanswered&start=$2&sr=topics",
   "^/newposts(-([0-9]+))?\.html" => "/search.php?search_id=newposts&start=$2&sr=topics",
   "^/unreadposts(-([0-9]+))?\.html" => "/search.php?search_id=unreadposts&start=$2",
   "^/the-team\.html" => "/memberlist.php?mode=leaders",
   "^/([a-z0-9_-]+)(-([0-9]+))\.html" => "/viewforum.php?forum_uri=$1&start=$3",
   "^/([a-z0-9_-]+)\.html" => "/viewforum.php?forum_uri=$1",
   "^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$" => "/$1",
   "^.+/(styles/.*|images/.*)/$" => "/$1"
    )
}


Tikiuosi informacija bus naudinga.
Vartotojo avataras
MKas
Site Admin
 
Pranešimai: 120
Užsiregistravo: 2010-08-09 13:49:06
Miestas: Lithuania, Vilnius

Grįžti į lighttpd

Dabar prisijungę

Vartotojai naršantys šį forumą: Registruotų vartotojų nėra ir 0 svečių

cron

x