重定向到IIS中的另一个URL

发布于 2025-01-31 21:59:46 字数 116 浏览 3 评论 0原文

我想从一个URL重定向到另一个URL。 对于我的页面“动态图形查看器”,请参见http:// localhost:8090 但希望它能在http:// localhost:8090/dynamiciCviewer上找到

I want to redirect from one url to another is IIS.
For e.g. my page "Dynamic Graph Viewer" is available at http://localhost:8090
But want it to be available at http://localhost:8090/DynamicViewer

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

﹏雨一样淡蓝的深情 2025-02-07 21:59:46

您是否尝试重定向http:// localhost:8090 to http:// localhost:8090/dynamiCviewer?如果是这样,您可以尝试以下规则:

<rule name="test" stopProcessing="true">
    <match url="(.*)" />
       <conditions>
         <add input="{HTTP_HOST}" pattern="^localhost:8090$" />
       </conditions>
    <action type="Redirect" url="http://localhost:8090/DynamicViewer" redirectType="Permanent" />
</rule>

Are you trying to redirect http://localhost:8090 to http://localhost:8090/DynamicViewer? if so, you can try this rule:

<rule name="test" stopProcessing="true">
    <match url="(.*)" />
       <conditions>
         <add input="{HTTP_HOST}" pattern="^localhost:8090
quot; />
       </conditions>
    <action type="Redirect" url="http://localhost:8090/DynamicViewer" redirectType="Permanent" />
</rule>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文