静态映射设置:
静态映射测试技巧:
静态映射常用规则:
1.0 动态域名跳转:
http://apizxbeta.zhixuerj.com/public/platform/wxf159/event_notify.php
http://apizxbeta.zhixuerj.com/public/platform/event_notify.php?appid=wxf159
#三方平台推送事件/消息
RewriteRule ^public/platform/(.*)/event_notify.php$ http://%{SERVER_NAME}/public/platform/event_notify.php?appid=$1 [NC,P]
2.0 保留url原有GET参数
http://apizxbeta.zhixuerj.com/public/platform/wxf159/event_notify.php?a=1&b=2&c=3
http://apizxbeta.zhixuerj.com/public/platform/event_notify.php?appid=wxf159&a=1&b=2&c=3
#三方平台推送事件/消息
RewriteRule ^public/platform/(.*)/event_notify.php$ http://%{SERVER_NAME}/public/platform/event_notify.php?appid=$1&%{QUERY_STRING} [NC,P]
参考资料:
IIS 静态映射配置:https://www.cnblogs.com/tianxuan/p/4955602.html
基础知识:https://blog.csdn.net/chentaoxie/article/details/52425531
原理:https://www.cnblogs.com/adforce/archive/2012/11/23/2784664.html