Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Alex 35 posts 55 karma points
    Nov 11, 2010 @ 03:55
    Alex
    0

    Error page

    I use Umbraco v4.5.1

    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
    ...

    And this junk appears in Google search results!!!

    Here is my web.config section:

    <customErrors mode="On" redirectMode="ResponseRewrite" 
       defaultRedirect="~/umbraco/plugins/poetpatcher/CustomError.aspx" />

    How can I disable that so as it does not appear in Google?

  • Alex 35 posts 55 karma points
    Nov 20, 2010 @ 04:16
    Alex
    0

    Any ideas?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 20, 2010 @ 08:48
    Jan Skovgaard
    0

    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

  • Alex 35 posts 55 karma points
    Nov 20, 2010 @ 09:14
    Alex
    0

    It was recommended by the Umbraco team when that security bug in ASP.NET was found

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Nov 20, 2010 @ 09:32
    Jan Skovgaard
    0

    Oh, totally missed that Info... But you should be able to disallow the acces in robots.txt I guess

  • Eduardo 106 posts 130 karma points
    Nov 22, 2010 @ 22:31
    Eduardo
    0

    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):

    <meta name="robots" content="index,follow"/>

     

    Use this meta tag in the other pages:

    <meta name="robots" content="index,nofollow"/>

     

    Change the path to a well know page:

    <customErrors mode="On" redirectMode="ResponseRewrite" 
       
    defaultRedirect="~/umbraco/plugins/poetpatcher/CustomError.aspx" />

    HTH.

    Sincere regards,
    Eduardo Macho

Please Sign in or register to post replies

Write your reply to:

Draft