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

I would recommend adding it to web.config & 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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -