本帖最后由 sissitang 于 2010-9-1 09:43 编辑
Rewrite.ini已经放到单独的文件夹里,.htaccess也放到根目录,首页可以开,店铺页不行啊。求解呀。。。。
独立主机IIs。rewrite.ini如下: - [ISAPI_Rewrite]
- CacheClockRate 3600
- RepeatLimit 32
- RewriteRule ^(.*)/store-([0-9]+)\.html\?*(.*)$ $1/store\.php\?id=$2
- RewriteRule ^(.*)/store-([0-9]+)-([a-z]+)\.html\?*(.*)$ $1/store\.php\?id=$2&action=$3
- RewriteRule ^(.*)/store-([0-9]+)-([a-z]+)-([0-9]+)\.html\?*(.*)$ $1/store\.php\?id=$2&action=$3&xid=$4
- RewriteRule ^(.*)/store-([0-9]+)-([a-z]+)-catid-([0-9]+)\.html\?*(.*)$ $1/store\.php\?id=$2&action=$3&catid=$4
- RewriteRule ^(.*)/street-([0-9]+)\.html\?*(.*)$ $1/street\.php\?catid=$2
- RewriteRule ^(.*)/street-([0-9]+)-([0-9]+)\.html\?*(.*)$ $1/street\.php\?catid=$2&tagid=$3
复制代码
.htaccess如下:
- RewriteEngine On
- RewriteBase /
- RewriteRule (.*.css$|.*.js$|.*.jpg$) gzip.php?$1 [L]
- # Rewrite 系统规则请勿修改
- RewriteRule ^(.*/)*topic-(.+)\.html$ $1portal.php?mod=topic&topic=$2
- RewriteRule ^(.*/)*article-([0-9]+)\.html$ $1portal.php?mod=article&articleid=$2
- RewriteRule ^(.*/)*forum-([0-9]+)-([0-9]+)\.html$ $1forum.php?mod=forumdisplay&fid=$2&page=$3
- RewriteRule ^(.*/)*thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ $1forum.php?mod=viewthread&tid=$2&extra=page\%3D$4&page=$3
- RewriteRule ^(.*/)*group-([0-9]+)-([0-9]+)\.html$ $1forum.php?mod=group&fid=$2&page=$3
- RewriteRule ^(.*/)*space-(username|uid)-(.+)\.html$ $1home.php?mod=space&$2=$3
- RewriteRule ^(.*/)*([a-z]+)-(.+)\.html$ $1$2.php?rewrite=$3
复制代码
|