【发布时间】:2021-04-17 22:37:55
【问题描述】:
我们已设置好 Sharepoint 2019 网站,一切运行良好。但是,当用户单击左上角标题中的品牌栏“Sharepoint”时,会将他们带到一个损坏的页面。对此进行了研究,似乎此链接在 2019 年无法更改,因为其他人也有此问题。
我们想要做的是重定向,所以每当他们访问损坏的链接时,它只会将他们定向到我们共享点的真实主页。
例子-
断开的链接是 http://servername/my/_layouts/15/sharepoint.aspx
正确的链接是https://sharepoint.companyname.com/SitePages/Home.aspx
这是我想添加到 web.config 文件的内容,但似乎不起作用。
<configuration>
<system.webServer>
<httpRedirect enabled="true" exactDestination="true" httpResponseStatus="Found">
<add wildcard="*_layouts/15/sharepoint.aspx" destination="https://sharepoint.companyname.com/SitePages/Home.aspx" />
</httpRedirect>
</system.webServer>
</configuration>
知道这里需要做什么吗?这甚至可能吗?我没有在这里设置共享点站点,所以我不确定 http://servername/my/_layouts/15/sharepoint.aspx 是如何成为品牌栏链接的。
谢谢!
【问题讨论】:
-
你的通配符好像不对,你可以试试改成sharepoint.aspx再试试。
wildcard="/sharepoint.aspx" -
所以我更改了通配符部分,但仍然无法按预期工作。我假设
wildcard=不需要实际的通配符即可工作。我会记住这一点以供将来参考。 -
关于如何设置通配符可以参考这个链接:HTTP Redirects <httpRedirect>,也可以尝试使用iisurl rewrite module。
-
谢谢。我也研究了重写模块,也无法让它工作。可能只是在这里不知所措。
-
你能告诉我你想重定向到哪个网址吗?我可以用iis url rewrite模块写一个例子给你作为参考。
标签: windows redirect iis sharepoint