asp.net - When designing a custom HTTP 404 error page, how to notify Search Engine of the 404 status? -
In order to update the index, search engines should no longer find a file
Once I Had tried to include the I would recommend adding it to web.config Response.StatusCode = 404 in the
Page_Load event on the custom 404 error page, but the result was that the custom page could not be loaded
web.config file's
& lt; CustomErrors & gt; In the element, there is a
statusCode attribute, is it a good way to inform the search engine 404 about status?
& lt; CustomErrors & gt; & Lt; Error .... Because it is easy to maintain in a file, then inline coding on every page is a big winner if changes are needed, then all you have to do is update config file and complete Instead of a solution, just release a config
Comments
Post a Comment