url-rewriting - 将内部 SharePoint 网站移动到 Office 365 后如何进行 URL 重写
问题描述
我们在我们的服务器上托管了我们的 Intranet 站点,它们的格式为 - http://example.com/dept/page(s).aspx。公司决定将它们移至 Office 365,现在它们的格式为https://MyComp.SharePoint.com/dept/page(s).aspx。
我想知道我们是否可以进行 URL 重写以将 Office 365 站点指向使用http://example.com/或https://example.com/。请记住,/dept/page(s).aspx 在两个站点上是相同的。
非常感谢 URL 重写专家的帮助。
解决方案
根据您的要求,您可以使用如下重写规则:
<rule name="rule1">
<match url="^(.*)$" />
<conditions>
<add input="{HTTP_HOST}" pattern="^https://MyComp.SharePoint.com$" />
</conditions>
<action type="Rewrite" url="http://example.com/{R:1}" />
</rule>
推荐阅读
- python - 如何更改 DataFrame 中的格式
- xml - 如何在 XML 中插入图像?
- data-structures - 链表可以实现哪些类型的数据结构?
- rx-java2 - Observable.create 和 fromPublisher 有什么区别?
- python - 如何从 url 读取 tiff 文件
- amazon-web-services - filebeat 是否支持 tcp 输入中的确认?
- react-native - 为什么尝试安装时没有安装最新版本的expo?
- sqlite - 数据库设计请求计数器
- xpath - XPATH 抓取系列中的最后一个节点
- android - 安装拆分APK而不杀死Android App