想实现的效果:
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>
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>