IIS7 URL从默认网站的子网站重写到路由器webadmin

IIS7 URL从默认网站的子网站重写到路由器webadmin,iis,url-rewriting,arr,Iis,Url Rewriting,Arr,使命: 要通过IIS URL Rewrite/ARR通过我的主网站在我的家庭服务器上访问我的家庭路由器的网站管理网站。因此,我可以转到我的家庭网站,然后单击要转到的链接,而不是键入../index.cgi来访问我的路由器 旅程 到目前为止,我已经能够以多种方式重定向和重写。然而,只有当我在URL中不使用“子文件夹”时,成功才会到来。我发现这是由于路由器的网站利用了根相对链接。我曾尝试编写一些出站规则来规避这一问题,但收效甚微。当我用一个小正则表达式像这样去掉第一个正斜杠 (将等号、双引号或单引号

使命:
要通过IIS URL Rewrite/ARR通过我的主网站在我的家庭服务器上访问我的家庭路由器的网站管理网站。因此,我可以转到我的家庭网站,然后单击要转到的链接,而不是键入../index.cgi来访问我的路由器

旅程
到目前为止,我已经能够以多种方式重定向和重写。然而,只有当我在URL中不使用“子文件夹”时,成功才会到来。我发现这是由于路由器的网站利用了根相对链接。我曾尝试编写一些出站规则来规避这一问题,但收效甚微。当我用一个小正则表达式像这样去掉第一个正斜杠

(将等号、双引号或单引号以及正斜杠替换为等号和引号)



SSL证书(包括通配符证书)是免费的,所以如果需要的话,这真的不应该是一个障碍。我想你会在上得到更好的答案。@tambre-低到无成本通配符在这种情况下肯定是一个游戏规则改变者,也是一种首选的方式。我不知道那个网站,谢谢
        <outboundRules>
            <rule name="gallifrey-out" preCondition="IsHTML">
                <match filterByTags="None" customTags="" pattern="=(\&quot;|\')\/" />
                <action type="Rewrite" value="={R:1}" />
            </rule>
            <preConditions>
                <remove name="IsHTML" />
                <preCondition name="IsHTML">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                </preCondition>
            </preConditions>
        </outboundRules>
        <outboundRules>
            <rule name="gallifrey-out" preCondition="IsHTML" stopProcessing="true">
                <match filterByTags="CustomTags" customTags="baseInject" pattern="(.*)" />
                <action type="Rewrite" value="text/css&quot;>&lt;/style>&lt;base href=&quot;http://example.com/router1/images&quot;>&lt;style type=&quot;text/css" />
            </rule>
            <preConditions>
                <remove name="IsHTML" />
                <preCondition name="IsHTML">
                    <add input="{RESPONSE_CONTENT_TYPE}" pattern="^text/html" />
                </preCondition>
            </preConditions>
            <customTags>
                <tags name="baseInject">
                    <tag name="style" attribute="type" />
                </tags>
            </customTags>
        </outboundRules>