Forum Moderators: phranque
68.235.44.ddd - - [21/Nov/2022:08:15:17 -0800] "HEAD /backup.zip HTTP/1.1" 403 282 "-" "python-requests/2.27.1" Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/101.0.4951.67 Safari/537.36 Mozilla/5.0 (compatible; Nmap Scripting Engine; https://nmap.org/book/nse.html)--brazen of them to include an informational URL, I must say--as part of a package of
¹²¤Lµ·mDv¥Î¦ßu!M§™$ò ªT€ ÖÙ© €sÜ×0Ù=qgº‚‡U|Æ*jnFMqwG3°JHXT»«W5Ñçc¸§¹SO4!TÁçxi¦–öñ2would be appreciated.
Why redirect a 404 to anything?
The 404 (Not Found) status code indicates that the origin server did not find a current representation for the target resource or is not willing to disclose that one exists. A 404 status code does not indicate whether this lack of representation is temporary or permanent; the 410 (Gone) status code is preferred over 404 if the origin server knows, presumably through some configurable means, that the condition is likely to be permanent.
If you removed the page and there's no replacement page on your site with similar content, return a 404 (not found) or 410 (gone) response (status) code for the page. These status codes indicate to search engines that the page doesn't exist and the content should not be indexed.
If you have access to your server's configuration files, you can make these error pages useful to users by customizing them. A good custom 404 page helps people find the information they're looking for, and also provides other helpful content that encourages people to explore your site further. Here are some tips for designing a useful custom 404 page:
- Tell visitors clearly that the page they're looking for can't be found. Use language that is friendly and inviting.
- Make sure your 404 page has the same look and feel (including navigation) as the rest of your site.
- Consider adding links to your most popular articles or posts, as well as a link to your site's home page.
- Think about providing a way for users to report a broken link.
Custom 404 pages are created solely for users. Since these pages are useless from a search engine's perspective, make sure the server returns a 404 HTTP status code to prevent having the pages indexed.
Googlebot follows the redirect, and the indexing pipeline uses the redirect as a strong signal that the redirect target should be canonical.
From an SEO perspective, a 404 page should return a 404 Status Code (Page Not Found) as opposed to a 200 (OK) status code. The return of a 404 status code alerts automated users, such as search engine crawlers, about a link that is broken; it is the only way an automated user can ascertain this. If 404 pages return a 200 status code then search engines consider the broken link to be valid, and the “404 page” can end up in the index.
I simply can't understand this fierce resistance to making a useful 404 page.
[edited by: phranque at 4:11 am (utc) on Feb 19, 2023]
[edit reason] brevity [/edit]
But if the file is not there then why bother with any further action beyond redirecting the 404 to a more useful link, like your home page?
whatever, why spend your server resources to serve a home page or whatever useful content?
That page is not found. Perhaps a typo, or the content has changed. To find what you are looking for click here for our HOME PAGE.