2010-11-19 16 views
1

當我們點擊「歡迎系統帳戶」下拉控件(頁面右上角)的登出控制時。它使用頁面signout.aspx(C:\ Program Files \ Common Files \ microsoft shared \ Web Server Extensions \ 12 \ TEMPLATE \ LAYOUTS \ signout.aspx)頁面中的buit來重定向。我希望它重定向到我自己創建的自定義登出頁面,我將手動放置在佈局文件夾中。如何做到這一點當點擊登出時重定向到不同的頁面,而不是重定向登出sign.aspx

回答

1

創建一個HTTP模塊,然後重定向

+0

能否請您詳細一點。 thanx提前 – 2010-11-23 05:43:38

+0

嘿感謝您的建議。我從(http://blogs.msdn.com/b/pranab/archive/2007/12/13/using-http-module-for-sharepoint-2007-moss-wss-site-using-fba- and-rsa.aspx和http://vspug.com/dwise/2007/01/08/one-master-to-rule-them-all-two-actually/),並能夠對我的網站進行更改。 – 2010-11-24 06:27:17

6

是的,你可以改變使用SharePoint管理Shell命令你signout頁面的重定向。

設置自定義註銷頁面:

Set-SPCustomLayoutsPage -identity "Signout" -RelativePath "/_layouts/CustomSignout/Signout.aspx" -WebApplication "http://yourwebapplication" 

設置默認註銷頁:

Set-SPCustomLayoutsPage -identity "Signout" -reset -WebApplication "http://yourwebapplication" 
+0

這樣好多了,因爲如果你有16個Web前端服務器,除非你自動化web.config修改過程,否則模塊方法將變成支持的噩夢。這種方法是最佳實踐! Upvoting。 – 2011-12-09 07:44:21

相關問題