Logo 
Search:

Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

404 Error for non-existant site collections in a wild card managed

  Asked By: Raymundo    Date: Dec 06    Category: Sharepoint    Views: 1496

We have a Web Application that contains a wildcard managed path,
under which we have multiple site collections defined. A few of our
users have noted that if they incorrectly type in a site name, they
are presented with the following 404 error:

HTTP/1.1 404 Connection: close Date: <Date> Server: Microsoft-IIS/6.0
X-Powered-By: ASP.NET MicrosoftSharePointTeamServices: 12.0.0.6039

We have a custom 404 page in the 12 hive and have registerred it with
the SPWebApplication object. Users who type in invalid urls at any
other level than the wildcard path are correctly presented the custom
error page. Users who type in invalid urls at the managed path level
are presented with the above error.

Ex)

http://servername/managedpath/site/non-existantpage results in the
custom error page

http://servername/managedpath/non-existantsite results in the
HTTP/1.1 404 Connection... error

I have been unable to find much information about this scenario out
there, other than a few blog posts that mention the page registerred
with the SPWebApplication willl not work in this scenario. Is there
any way for us to display our custom error page instead of the above
error?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Cheryl Kelley     Answered On: Dec 06

Have you tried changing the default 404  at the IIS level  to match the
one in your 12 hive?

 
Answer #2    Answered By: Titus Sweet     Answered On: Dec 06

Yes, I tried setting the IIS 404  page to the custom  page in the 12
hive, but it still results  in the error.

 




Tagged: