HTTP Status Code is a new module to manipulate HTTP status header.
HTTP Status Code is a new module to manipulate HTTP status header.
Main reason for doing this module is that in some cases you need to do manual fixes on the server side to create 410 Gone headers for paths that you want to remove from Google search index, with this module active you could setup the paths directly in Drupal.
You can find the the module at drupal.org. Normaly install should be done with composer - composer require drupal/http_status_code.
The module supports all Headers used by Symfony\Component\HttpFoundation\Response - with that said - HTTP headers should be used with caution. So make sure what you understand the impact then you manipulate the HTTP Header - like adding a 301 Redirect Header will be real bad when you not have a redirect in place.
If you remove a page, the request for the path of the page normally then gives a 404 not… Read More