HTTP Error 410: Gone

Navigation

HTTP Error 410: Gone

At the moment I need to remove permanently some old documents from my other site. The HTTP Error 410 means "Resource gone", but how do I implement this?

Changes in the .htaccess file

On my web server I must do following, that visitors get a error 410 and the search engines remove this document from the index.


 Redirect Gone /path/to/resource

 ErrorDocument 410 /path/to/custom/page
  

After a client request to the removed document the error 410 should send and not error 404 or HTTP code 200. The error document can have my own notes for the visitors. Also useable for:

  • temporary pages or images like screenshots
  • test environments

[back to top]

 

[back to navigation]

[back to top]