我绑架了上帝 发表于 2013-5-26 22:27:02

[zeus]求助,pw转dz,怎么把已经收录的pw伪静态转成dz伪静态?

match URL into $ with ^(.*)-htm-(.*)$
if matched then
set URL = $1.php?$2
endif
match URL into $ with ^(.*)/simple/(+\.html)$
if matched then
set URL = $1/simple/index.php?$2
endif
match URL into $ with ^(.*)/topic_(.*)_(.*)_(.*).html$
if matched then
set URL = $1/read.php?tid=$2&page=$3&fpage=$4
endif

match URL into $ with ^(.*)/topic_(.*)_(.*).html$
if matched then
set URL = $1/read.php?tid=$2&page=$3&fpage=$4
endif
match URL into $ with ^(.*)/topic_(.*).html$
if matched then
set URL = $1/read.php?tid=$2&page=$3&fpage=$4
endif
match URL into $ with ^(.*)/forum_(.*)_(.*).html$
if matched then
set URL = $1/thread.php?fid=$2&page=$3
endif
match URL into $ with ^(.*)/forum_(.*).html$
if matched then
set URL = $1/thread.php?fid=$2&page=$3
endif


怎么将以上已收录的地址重定向dz的伪静态?

DZ伪静态zeus规则



match URL into $ with ^(.*)/topic-(.+)\.html\?*(.*)$
if matched then
set URL = $1/portal.php?mod=topic&topic=$2&$3
endif
match URL into $ with ^(.*)/article-(+)-(+)\.html\?*(.*)$
if matched then
set URL = $1/portal.php?mod=view&aid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/f-(\w+)-(+)\.html\?*(.*)$
if matched then
set URL = $1/forum.php?mod=forumdisplay&fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/t-(+)-(+)-(+)\.html\?*(.*)$
if matched then
set URL = $1/forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3&$5
endif
match URL into $ with ^(.*)/group-(+)-(+)\.html\?*(.*)$
if matched then
set URL = $1/forum.php?mod=group&fid=$2&page=$3&$4
endif
match URL into $ with ^(.*)/space-(username|uid)-(.+)\.html\?*(.*)$
if matched then
set URL = $1/home.php?mod=space&$2=$3&$4
endif
match URL into $ with ^(.*)/blog-(+)-(+)\.html\?*(.*)$
if matched then
set URL = $1/home.php?mod=space&uid=$2&do=blog&id=$3&$4
endif
match URL into $ with ^(.*)/(fid|tid)-(+)\.html\?*(.*)$
if matched then
set URL = $1/index.php?action=$2&value=$3&$4
endif
规则怎么写呢?





页: [1]
查看完整版本: [zeus]求助,pw转dz,怎么把已经收录的pw伪静态转成dz伪静态?