Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 206
  • Last Modified:

Modify webconf file in order to modify deniedaccess page: it is not working

Hi there,

I modify the web.conf of sharepoint website in order to take a new page

I remplaced

<customErrors mode="On" />

By

<customErrors mode="On">
      <error statusCode="401"
             redirect="AccessDenied.html"/>
</customErrors>

I had AccessDenied.html in the current folder

But, I have always the default Access denied pag

Please help me

Thanks,

Regards,

Simlip
0
simlip
Asked:
simlip
1 Solution
 
Rainer JeschorCommented:
Hi,
which SharePoint version / edition?

The access denied page in SharePoint is handled differently than in a "normal" ASP.NET web application.

You can set a custom access denied page using Powershell. This blog article explains how to create a custom access denied page as well as the Powershell script to set it:
http://sharepointkings.blogspot.de/2013/07/customize-access-denied-page.html

HTH
Rainer
0
 
simlipAuthor Commented:
Hi there,
The version of sharepoint is foundation 2010
I am following your link
Thanks,
Regards,
Simlip
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now