destoon采集论坛

 找回密码
 立即注册
查看: 60|回复: 0

伪静态在isapi_rewrite版本下的问题

[复制链接]

21

主题

93

回帖

273

积分

中级会员

Rank: 3Rank: 3

积分
273
发表于 2011-3-21 16:49:47 | 显示全部楼层 |阅读模式
这个版本在isapi_rewrite 1.3版本 下没有问题。这也是帮助中提供的版本。

RewriteRule ^(.*)\.(asp|aspx|asa|asax|dll|jsp|cgi|fcgi|pl)(.*)$ /404\.php
RewriteRule ^(.*)-htm-(.*)$ $1\.php\?$2
RewriteRule ^(.*)/show-([0-9]+)([\-])?([0-9]+)?\.html$ $1/show\.php\?itemid=$2&page=$4
RewriteRule ^(.*)/list-([0-9]+)([\-])?([0-9]+)?\.html$ $1/list\.php\?catid=$2&page=$4
RewriteRule ^(.*)/show/([0-9]+)/([0-9]+)?([/])?$ $1/show\.php\?itemid=$2&page=$3
RewriteRule ^(.*)/list/([0-9]+)/([0-9]+)?([/])?$ $1/list\.php\?catid=$2&page=$3
RewriteRule ^(.*)/com/([a-z0-9]+)/([a-z]+)/(.*)\.html$ $1/company/$3/index\.php\?homepage=$2&rewrite=$4
RewriteRule ^(.*)/com/([a-z0-9]+)/([a-z]+)([/])?$ $1/company/$3/index\.php\?homepage=$2
RewriteRule ^(.*)/com/([a-z0-9]+)([/])?$ $1/company/index\.php\?homepage=$2
RewriteRule ^(.*)/([a-z]+)/(.*)\.shtml$ $1/$2/index\.php\?rewrite=$3

但这个规则在isapi_rewrite 2.9 full版本下,访问企业地址就会出现404页面。规则是放在company目录下的,1.3版本下这样放无问题。

感觉应该是2.9的版本,对于规则有了小的变化。

肯请管理员或者伪静态高手指点。规则该如何修改?
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|destoon采集论坛

GMT+8, 2025-11-26 20:49 , Processed in 0.012630 second(s), 21 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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