咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

discuz2伪静态规则收集

2018-10-09 17:26:33 6569次

本规则适用于iis7

<rule name="portal_topic">

<match url="^(.*/)*topic-(.+).html\?*(.*)$" />

<action type="Rewrite" url="{R:1}/portal.php\?mod=topic&amp;topic={R:2}&amp;{R:3}" />

</rule>

<rule name="forum_forumdisplay">

<match url="^(.*/)*forum-(\w+)-([0-9]+).html\?*(.*)$" />

<action type="Rewrite" url="{R:1}/forum.php\?mod=forumdisplay&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />

</rule>

<rule name="forum_viewthread">

<match url="^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+).html\?*(.*)$" />

<action type="Rewrite" url="{R:1}/forum.php\?mod=viewthread&amp;tid={R:2}&amp;extra=page%3D{R:4}&amp;page={R:3}&amp;{R:5}" />

</rule>

<rule name="group_group">

<match url="^(.*/)*group-([0-9]+)-([0-9]+).html\?*(.*)$" />

<action type="Rewrite" url="{R:1}/forum.php\?mod=group&amp;fid={R:2}&amp;page={R:3}&amp;{R:4}" />

</rule>

<rule name="home_space">

<match url="^(.*/)*space-(username[-]uid)-(.+).html\?*(.*)$" />

<action type="Rewrite" url="{R:1}/home.php\?mod=space&amp;{R:2}={R:3}&amp;{R:4}" />

</rule>

<rule name="forum_archiver">

<match url="^(.*/)*(fid[-]tid)-([0-9]+).html\?*(.*)$" />

<action type="Rewrite" url="{R:1}/index.php\?action={R:2}&amp;value={R:3}&amp;{R:4}" />

</rule>


首页
最新活动
个人中心