V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
csensix
V2EX  ›  问与答

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

  •  
  •   csensix · Apr 26, 2016 · 2290 views
    This topic created in 3661 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   ·   1410 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:30 · PVG 00:30 · LAX 09:30 · JFK 12:30
    ♥ Do have faith in what you're doing.