本文介绍了定制"403 FORBIDDEN".网站集被锁定时显示的消息.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我们需要自定义403禁止错误消息,其中特定的网站集由于迁移而被锁定.

Hi we need to customize the 403 forbidden error message where a particular site collection is lock due to migration.

我们可以对IIS或SharePoint进行一些更改吗?我已经通过了下面的线程,但是无法实现.

Can we do with some changes to IIS or SharePoint. I have been through below thread but was unable to achieve it.

https://social.msdn.microsoft.com/Forums/office/zh-CN/6425af89-d5c9-40bc-84e2-68fe764acd02/customizing-the-403-forbidden-message-when-site-collection-is -locked?forum = sharepointcustomizationlegacy

https://social.msdn.microsoft.com/Forums/office/en-US/6425af89-d5c9-40bc-84e2-68fe764acd02/customizing-the-403-forbidden-message-when-site-collection-is-locked?forum=sharepointcustomizationlegacy

推荐答案

1.在SharePoint布局文件夹下创建一个简单的html错误页面.

1. Create a simple html error page under SharePoint layouts folder.

2.按照以下链接在IIS中映射html并在web.config文件中进行必要的更改

2. Follow the following links to map the html in IIS and make neccessary changes in web.config file

https://www.sherweb.com/blog/how-to-create-custom-error-pages-in-iis-7-5-with-asp-net/

http://www.mahmoudfarhat.net/post/2012/05/08/Handling-custom-HTTP-error-messages-on-IIS-7-by-SharePoint-2010.aspx

希望这会有所帮助!


这篇关于定制"403 FORBIDDEN".网站集被锁定时显示的消息.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 13:24