惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
V
Visual Studio Blog
有赞技术团队
有赞技术团队
T
Tailwind CSS Blog
B
Blog
I
InfoQ
博客园 - 三生石上(FineUI控件)
阮一峰的网络日志
阮一峰的网络日志
F
Fortinet All Blogs
H
Help Net Security
博客园 - Franky
宝玉的分享
宝玉的分享
博客园 - 司徒正美
C
Check Point Blog
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Jina AI
Jina AI
T
The Blog of Author Tim Ferriss
MongoDB | Blog
MongoDB | Blog
云风的 BLOG
云风的 BLOG
A
About on SuperTechFans
罗磊的独立博客
大猫的无限游戏
大猫的无限游戏
IT之家
IT之家

WangDeer

非机动车交通规则测验 微软 50 周年壁纸是在 macOS上设计的? 「转」西二旗折叠:蜂巢经济学启示录 难得空明 Ubuntu Clean ApidocJs apigroup Support Chinese int(10)里面的10是什么意思? 5-3 会话 2021-03-25 「PHP架构师」面试准备 Laravel 上传 Docx 文件,表单验证不通过 4-4 发送信号 4-3 信号集 4-2 编写中断信号处理程序 2022-03-10 面试复盘 4-1 什么是中断信号(软中断) 3-7 进程查看 3-6 SUID特权进程 3-5多进程编写 3-4进程调度 3-3进程exec 3-2进程退出和回收 3-1进程标识与fork 2-3解释器文件 2-2命令行参数与环境参数表 2-1程序与进程 1-1课程介绍 终极复盘 第八章 传承篇 第七章 自由篇 第六章 品牌篇
Ecmall iis 伪静态规则
王二 · 2014-06-12 · via WangDeer

貌似按照官方的伪静态操作方法在iis不起作用,于是对官方伪静态规则进行了修改,问题得到解决。

官方给的伪静态规则如下:

-----内容开始,不要复制本行-----

[ISAPI_Rewrite]

# 为了确保重写规则不影响服务器上的其他站点
# 请将下面的语句前的#号去掉,并将(?:www\.)?site1\.com改为商店所在域名

#RewriteCond %{HTTP:Host} (?:www\.)?site1\.com

RewriteRule ^goods/([0-9]+)/?$ index.php?app=goods&id=$1 [I]
RewriteRule ^goods/([0-9]+)/([^/]+)/?$ index.php?app=goods&id=$1&act=$2 [I]
RewriteRule ^goods/([0-9]+)/([^/]+)/page_([^/]+)/?$ index.php?app=goods&id=$1&act=$2&page=$3 [I]
RewriteRule ^groupbuy/([0-9]+)/?$ index.php?app=groupbuy&id=$1 [I]
RewriteRule ^category/goods/?$ index.php?app=category [I]
RewriteRule ^category/(.*)/?$ index.php?app=category&act=$1 [I]
RewriteRule ^brand/?$ index.php?app=brand [I]
RewriteRule ^article/([0-9]+).html$ index.php?app=article&act=view&article_id=$1 [I]
RewriteRule ^store/([0-9]+)/?$ index.php?app=store&id=$1 [I]
RewriteRule ^store/article/([0-9]+).html$ index.php?app=store&act=article&id=$1 [I]
RewriteRule ^store/([0-9]+)/credit/?$ index.php?app=store&id=$1&act=credit [I]
RewriteRule ^store/([0-9]+)/credit/page_([^/]+)/?$ index.php?app=store&id=$1&act=credit&page=$2 [I]
RewriteRule ^store/([0-9]+)/credit/([0-9]+)/?$ index.php?app=store&id=$1&act=credit&eval=$2 [I]
RewriteRule ^store/([0-9]+)/credit/([0-9]+)/page_([^/]+)/?$ index.php?app=store&id=$1&act=credit&eval=$2&page=$3 [I]
RewriteRule ^store/([0-9]+)/goods/?$ index.php?app=store&id=$1&act=search [I]
RewriteRule ^store/([0-9]+)/goods/page_([^/]+)/?$ index.php?app=store&id=$1&act=search&page=$2 [I]
RewriteRule ^store/([0-9]+)/category/([0-9]+)/?$ index.php?app=store&id=$1&act=search&cate_id=$2 [I]
RewriteRule ^store/([0-9]+)/category/([0-9]+)/page_([^/]+)/?$ index.php?app=store&id=$1&act=search&cate_id=$2&page=$3 [I]
RewriteRule ^store/([0-9]+)/groupbuy/?$ index.php?app=store&id=$1&act=groupbuy [I]
RewriteRule ^store/([0-9]+)/groupbuy/page_([^/]+)/?$ index.php?app=store&id=$1&act=groupbuy&page=$2 [I]
-----内容结束,不要复制本行-----

修改后的伪静态规则:

[ISAPI_Rewrite]

# 3600 = 1 hour
CacheClockRate 3600

RepeatLimit 32


#商品详情
RewriteRule /goods/([0-9]+)/?$ /index\.php\?app=goods&id=$1 [L]
RewriteRule /goods/([0-9]+)/([^/]+)/?$ /index\.php\?app=goods&id=$1&act=$2 [L]
RewriteRule /goods/([0-9]+)/([^/]+)/page_([^/]+)/?$ /index.php\?app=goods&id=$1&act=$2&page=$3 [L]
RewriteRule /groupbuy/([0-9]+)/?$ /index\.php\?app=groupbuy&id=$1 [L]

#分类
RewriteRule /category/goods/?$ /index\.php\?app=category [L]
RewriteRule /category/(.*)/?$ /index\.php\?app=category&act=$1 [L]

#品牌
RewriteRule /brand/?$ /index\.php\?app=brand [L]

#文章
RewriteRule /article/([0-9]+).html$ /index\.php\?app=article&act=view&article_id=$1 [L]

#店铺页面
RewriteRule /store/([0-9]+)/?$ /index\.php\?app=store&id=$1 [L]
RewriteRule /store/article/([0-9]+).html$ /index\.php\?app=store&act=article&id=$1 [L]
RewriteRule /store/([0-9]+)/credit/?$ /index\.php\?app=store&id=$1&act=credit [L]
RewriteRule /store/([0-9]+)/credit/page_([^/]+)/?$ /index\.php\?app=store&id=$1&act=credit&page=$2 [L]
RewriteRule /store/([0-9]+)/credit/([0-9]+)/?$ /index\.php\?app=store&id=$1&act=credit&eval=$2 [L]
RewriteRule /store/([0-9]+)/credit/([0-9]+)/page_([^/]+)/?$ /index\.php\?app=store&id=$1&act=credit&eval=$2&page=$3 [L]
RewriteRule /store/([0-9]+)/goods/?$ /index\.php\?app=store&id=$1&act=search [L]
RewriteRule /store/([0-9]+)/goods/page_([^/]+)/?$ /index\.php\?app=store&id=$1&act=search&page=$2 [L]
RewriteRule /store/([0-9]+)/category/([0-9]+)/?$ /index\.php\?app=store&id=$1&act=search&cate_id=$2 [L]
RewriteRule /store/([0-9]+)/category/([0-9]+)/page_([^/]+)/?$ /index\.php\?app=store&id=$1&act=search&cate_id=$2&page=$3 [L]
RewriteRule /store/([0-9]+)/groupbuy/?$ /index\.php\?app=store&id=$1&act=groupbuy [L]
RewriteRule /store/([0-9]+)/groupbuy/page_([^/]+)/?$ /index\.php\?app=store&id=$1&act=groupbuy&page=$2 [L]

其他步骤请参考官方文档!