LB.
LB.

Reputation: 14112

How to direct to a custom error page?

In SharePoint,

I want to be able to direct to a custom error page if a 404 is reached.

However, after following:

How to point to a custom 404 error Web page in Windows SharePoint Services 3.0 or in Microsoft Office SharePoint Server 2007

I'm unable to hit my custom error page when trying for entries such as:

http://localhost/adsdasad or something erroneus.

Any ideas?

Upvotes: 3

Views: 1071

Answers (2)

Chris Ballance
Chris Ballance

Reputation: 34347

Add a wildcard handler in IIS for such urls.

IIS configuration

Upvotes: 2

Nat
Nat

Reputation: 14295

Those URL's are not being handled by your SharePoint configuration because IIS does not think that the should be handled by SharePoint. As Chris points out you should add custom 404 handling at the IIS level too.

Upvotes: 0

Related Questions