iis - 重定向域作品但不重定向页面
问题描述
在我的 web.config 中,我有几个正常工作的规则。我有下面的一个,它是我优先考虑的第二个。域重定向正常。但是,www.olddomain.com/aboutus 会重定向到 www.newdomain.com/newpageaboutus。我需要它将所有请求重定向到 www.newdomain.com/newpage 的静态页面。
<rule name="olddomain.com" enabled="true">
<match url="(.*)" ignoreCase="true" />
<conditions logicalGrouping="MatchAll" trackAllCaptures="false">
<add input="{HTTP_HOST}" matchType="Pattern" pattern="^.*olddomain\.com$" />
</conditions>
<action type="Redirect" url="https://www.newdomain.com/newpage" redirectType="Permanent" appendQueryString="false" />
</rule>
谢谢。
解决方案
这是我的错误。我从一台主机到另一台主机的重定向包括新页面链接。对不起。但是,我认为将来添加 stopProcessing="true" 会解决这个问题。
推荐阅读
- r - 用于 renderImage 的闪亮环境
- java - 将休眠结果对象添加到数组列表
- html - 在 a 中居中按钮
在一个里面
- angular - Ionic 5 - Angular 和服务器端重新渲染 (SSR)。错误:无法重新定义属性:构造函数
- spring-boot - Spring Security 在构建用户主体之前应用 HttpSecurity 过滤器
- android - Recyclerview 视图未填充
- python - 在一行中的 2 个数据框列上应用 Lambda
- mobile - Godot 对象以不同的速度移动
- javascript - 我将如何使用两个不同版本的 discord.js | Discord.js 机器人
- excel - 根据电源查询中的最新日期删除重复项