csensix
V2EX  ›  问与答

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

  •  
  •   csensix · Apr 26, 2016 · 2345 views
    This topic created in 3688 days ago, the information mentioned may be changed or developed.
    想实现的效果:
    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 replies    2016-04-26 14:38:57 +08:00
    csensix
        1
    csensix  
    OP
       Apr 26, 2016
    自己顶一下。有知道的吗?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5582 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 08:20 · PVG 16:20 · LAX 01:20 · JFK 04:20
    ♥ Do have faith in what you're doing.