Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[其他] 今天刚写成,调试通过的伪静态程序

[复制链接]
南京老魏 发表于 2011-6-19 16:29:44 | 显示全部楼层 |阅读模式
网站跑不动了,哥几个撮堆喝着茶,写了一堆,上去就成了
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="topic">
<match url="^topic-(.+)\.html$" />
<action type="Rewrite" url="portal.php?mod=topic&topic={R:1}" />
</rule>
<rule name="article">
<match url="article-([0-9]+)\.html$" />
<action type="Rewrite" url="portal.php?mod=view&aid={R:1}" />
</rule>
<rule name="forum">
<match url="^forum-([0-9]+)-([0-9]+)\.html$" ignoreCase="false" />
<action type="Rewrite" url="forum.php?mod=forumdisplay&fid={R:1}&page={R:2}" appendQueryString="false" />
</rule>
<rule name="thread">
<match url="^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$" />
<action type="Rewrite" url="forum.php?mod=viewthread&tid={R:1}&extra=page={R:2}&page={R:3}" />
</rule>
<rule name="group">
<match url="^group-([0-9]+)-([0-9]+)\.html$" />
<action type="Rewrite" url="forum.php?mod=group&fid={R:1}&page={R:2}" />
</rule>
<rule name="space">
<match url="^space-(username|uid)-(.+)\.html$" />
<action type="Rewrite" url="home.php?mod=space&{R:1}={R:2}" />
</rule>
<rule name="Xrewrite">
<match url="^([a-z]+)-(.+)\.html$" />
<action type="Rewrite" url="{R:1}.php?rewrite={R:2}" />
</rule>
</rules>
</rewrite>
<httpErrors errorMode="Detailed" />
<asp scriptErrorSentToBrowser="true" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
<globalization requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="utf-8" />
</system.web>
</configuration>
保存成web.config     传到根目录,进SEO打上勾,提交,就成了。
大家分享  
IIS7 windows7系统 独立服务器 适用Discuz X 1.5 2.0都可以
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-12-28 20:51 , Processed in 0.024173 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表