If a page is not found I get this ugly error page:
An error occurred while processing your request.
Request Details
Session Id: vn3goothi5qhvkkewf34u5zo Request Type: GET
Time of Request: 11/11/2010 12:46:36 PM Status Code: 200
Request Encoding: Unicode (UTF-8) Response Encoding: Unicode (UTF-8)
Trace Information
Category Message From First(s) From Last(s)
aspx.page Begin PreInit
aspx.page End PreInit 8.01777879590842E-05 0.000080
Is there a reason why the custom error has been setup the way it is?
Out of the box it should look like this in the web.config - <customErrors mode="RemoteOnly" /> - But that won't solve the problem I guess, since there will still be thrown an error - but maybe you can get more info about the error by setting <customErrors mode="on" /> and nothing more...
Otherwise I think you should add the path to the customerror.aspx to your robots.txt then google won't index the site...
Error page
I use Umbraco v4.5.1
If a page is not found I get this ugly error page:
And this junk appears in Google search results!!!
Here is my web.config section:
How can I disable that so as it does not appear in Google?
Any ideas?
Is there a reason why the custom error has been setup the way it is?
Out of the box it should look like this in the web.config - <customErrors mode="RemoteOnly" /> - But that won't solve the problem I guess, since there will still be thrown an error - but maybe you can get more info about the error by setting <customErrors mode="on" /> and nothing more...
Otherwise I think you should add the path to the customerror.aspx to your robots.txt then google won't index the site...
/Jan
It was recommended by the Umbraco team when that security bug in ASP.NET was found
Oh, totally missed that Info... But you should be able to disallow the acces in robots.txt I guess
Hi Alex,
Install this package (robots.txt)
http://our.umbraco.org/projects/developer-tools/robotstxt-editor
Disallow access to Umbraco main directories.
Use this meta tag in your home page(index):
Use this meta tag in the other pages:
Change the path to a well know page:
HTH.
Sincere regards,
Eduardo Macho
is working on a reply...