Gérer les cookies utilisés pour la publicité, tels que la personnalisation des annonces, le remarketing et l’analyse des performances des annonces.
2.7.1.1.8. Configure custom 404 error page
To do this, you need to create a file named .htaccess in the site root directory, containing the following code:
ErrorDocument 404 /404.html
Next, create a file named 404.html in the site root directory and put the code for the page that will be displayed when a 404 error occurs into it.
Similar settings can be configured for 401 and 403 errors.
Important points:
- For some CMS platforms, this method of generating errors won't work, since all requests are redirected to the CMS internal scripts.
- Custom 404 pages will not work correctly for URLs that mention
pagespeedif optimization settings are enabled. To resolve the issue, disable optimization settings or avoid using links with similar keywords.
Instructions are available for configuring custom 404 error page in popular CMS platforms:
(1)