To return a header with a 410 response, for example, for cases with removing sites from the issue, you can use the following construction:
1. In [the current site directory] , create a directory with the name 410 or any other arbitrary name and specify it as the [root directory of the site]
2. Create an index.php file inside the directory from point [1] and add the following lines - in order to return the title itself:
<?php header("HTTP/1.1 410 Gone"); header("Status: 410 Gone"); header("Retry-After: 3600"); ?>
3. Create an .htaccess file inside the directory from point [1] and add the following lines - in order to redirect all requests to index.php:
RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule . index.php [L]
For quick access to files, directories and their editing, you can use [file manager]
All question categories