V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
csensix
V2EX  ›  问与答

web.config 重写,子域名到特定链接

  •  
  •   csensix · 2016-04-26 14:15:33 +08:00 · 1655 次点击
    这是一个创建于 2921 天前的主题,其中的信息可能已经有所发展或是发生改变。
    想实现的效果:
    xxx.example.com -> www.example.com/function.php?id=xxx

    服务器是 IIS 7 ,语言 PHP

    我自己写了类似的,但不生效
    <rule name="test">
    <match url="(\w+).example.com" />
    <action type="Rewrite" url="/function.php?id={R:1}" />
    </rule>
    1 条回复    2016-04-26 14:38:57 +08:00
    csensix
        1
    csensix  
    OP
       2016-04-26 14:38:57 +08:00
    自己顶一下。有知道的吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5429 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 09:06 · PVG 17:06 · LAX 02:06 · JFK 05:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.