当前位置:首页 > 服务器类 > Windows服务器 > > Windows Server 2008 IIS7 UrlRewriteModule 规则

Windows Server 2008 IIS7 UrlRewriteModule 规则

点击次数:43 次 发布日期:2008-12-10 21:22:33 作者:源代码网
源代码网推荐

^archiver/((fid|tid)-[w-]+.html)$ archiver/index.php?{R:1}

  ^forum-([0-9]+)-([0-9]+).html$ forumdisplay.php?fid={R:1}&page={R:2}

  ^thread-([0-9]+)-([0-9]+)-([0-9]+).html$ viewthread.php?tid={R:1}&extra=page%3D$3&page={R:2}

  ^space-(username|uid)-(.+).html$ space.php?{R:1}={R:2}

  ^tag-(.+).html$ tag.php?name={R:1}

  黑色部分填写在 Pattern 红色部分填写在Rewrite Url

  其他部分保持不变 Name自己命名~~~

  论坛目录下不必放置.htaccess 文件了~~~ IIS7 很强!

  注意 Server2008 使用 的Rewrite是IIS7 MS自己的组件,非第三方~~

本文作者:未知
源代码网供稿.
网友评论 (0)
会员中心
服务器类
本站推荐
服务器类之精华