全球主机交流论坛

标题: 谁帮我改个很简单的iis下的规则 [打印本页]

作者: metalx    时间: 2011-2-26 20:07
标题: 谁帮我改个很简单的iis下的规则
RewriteEngine on
RewriteBase /
RewriteRule  ^catalog/(.*)_(.*).htm  catalog\.php\?id=$1&pg=$2
RewriteRule  ^catalog/(.*).htm  catalog\.php\?id=$1
RewriteRule  ^article/(.*).htm  article\.php\?id=$1

RewriteRule  ^tag/(.*) s\.php\?word=$1
RewriteRule  ^tieba/list/(.*).htm  catalog_tieba\.php\?id=$1
RewriteRule  ^tieba/list/(.*)_(.*).htm  catalog_tieba\.php\?id=$1&pn=$2
RewriteRule  ^tieba/view/(.*).htm  article_tieba\.php\?id=$1

以上代码改成iis下能用的其中上半部分小叶已经提供了 求下半部分!!!!!!

上部分修改结果请参考  加分伺候
RewriteRule  ^(.*)/catalog/(.*)/(.*)  $1/catalog\.php\?id=$2&pg=$3
RewriteRule  ^(.*)/catalog/(.*).htm$  $1/catalog\.php\?id=$2
RewriteRule  ^(.*)/article/(.*).htm$  $1/article\.php\?id=$1

[ 本帖最后由 metalx 于 2011-2-27 08:40 编辑 ]
作者: cnweb    时间: 2011-2-26 20:08
楼下来
作者: 安心    时间: 2011-2-26 23:49
httpd.ini
  1. [ISAPI_Rewrite]

  2. RewriteRule  ^tag/(.*) s\.php\?word=$1
  3. RewriteRule  ^tieba/list/(.*).htm  catalog_tieba\.php\?id=$1
  4. RewriteRule  ^tieba/list/(.*)_(.*).htm  catalog_tieba\.php\?id=$1&pn=$2
  5. RewriteRule  ^tieba/view/(.*).htm  article_tieba\.php\?id=$1
复制代码
这样可以不?
作者: metalx    时间: 2011-2-27 01:01
不行哥
作者: manhere    时间: 2011-2-27 05:36
如果是Helicon的ISAPI直接去掉^基本就行了
[ISAPI_Rewrite]
RewriteRule  tag/(.*) s\.php\?word=$1
RewriteRule  tieba/list/(.*).htm  catalog_tieba\.php\?id=$1
RewriteRule  tieba/list/(.*)_(.*).htm  catalog_tieba\.php\?id=$1&pn=$2
RewriteRule  tieba/view/(.*).htm  article_tieba\.php\?id=$1

作者: metalx    时间: 2011-2-27 08:40
上面的哥哥 不行呢
作者: metalx    时间: 2011-2-27 14:20





欢迎光临 全球主机交流论坛 (https://hostloc.9hanju.com/) Powered by Discuz! X3.4