You should do 301 redirects and remove the 404 URLs from the webmaster.Should i just delete them? Or do 301 redirect? Thanks in advance
If we are talking for PBNs - To the strongest page (usually the homepage), from where you will do the linking. For example the most of the links point to the homepage - you will link from there, so there should be 301 redirected the strongest non existent pages. The rest can be redirected to internal pages, sitemap etc. However lets say that the domain had popular blog so the strongest page is example.com/blog - obviously in this case is better to recreate the blog, link from there and redirect the 301s to there as well.What about using the 410 Tag as "The page has been deleted permanently". Is the 301 to Homepage better than using 410 (in case, you cant find a proper relevant page to redirect to).
What about using the 410 Tag as "The page has been deleted permanently". Is the 301 to Homepage better than using 410 (in case, you cant find a proper relevant page to redirect to).
@dr_0x makes a good point here -- it really depends on the situation.
If there are pages on your site that are returning 404 - why are they returning 404?
Common Situations
- Typo in URL
- If you're accidentally linking to a URL with a typo in it from somewhere else on your site, then go fix that typo and 301 the page that has the typo in it to the correct URL.
- Deleted Article
- If you used to have an article at some URL but deleted it because it was bad or you got a DMCA notice or whatever, you might 301 it to a different similar page.
- If there is no good alternative, you can 301 it to the homepage. But that isn't necessarily a perfect solution. Look up the term "soft 404."
- Consider leaving it as a 404. Despite what people often say, having 404 pages isn't necessarily bad if you actually meant to delete those pages. Set up your 404 page to have a message like "this page doesn't exist, here are some similar pages" (there are plugins to do this) and include a search tool as well. Really, that's what may be the most useful to the user. A 301 to the homepage can be jarring and inconvenient for users. If you've invested a lot into link building for the page, then you'd probably want to 301 it to something, but if it's just some random page, a 404 is fine.
- Someone else's linked to an incorrect URL from a different website
- 301 their typo to whatever they were actually trying to link to
The error encountered after implementing 301 is " too many redirects"
How to solve this, do lots of searches but all vain.
Are you also using 301s (or other redirects) to solve for https vs. http and/or www vs non-www? It could be that it is saying that there are too many redirects because it's actually doing something like this:
There could be even more redirects in there. Maybe you've set up your 301 like this:
- User loads http://somesite.com/some-page-that-does-not-exist.html
- User is 301ed to https://somesite.com/some-page-that-does-not-exist.html
- From there, user is 301ed to https://www.somesite.com/some-page-that-does-not-exist.html
- From there, user is 301ed to https://www.somesite.com (homepage)
And then once it redirects to the homepage, it then redirects to https:// and then to www., which could be adding another two redirects.
- https://www.somesite.com/some-page-that-does-not-exist.html --> somesite.com
Anyway, if that is the case, then your user might actually be being redirected 2, 3, even 5+ times during that redirect. The solution would be to make your redirect go directly to correct version of the homepage instead of needing to jump through various hoops.
Although, it should be noted that as long as the page actually loads, that message "too many redirects" isn't necessarily that important as long as the final destination is the correct page. It might load slower and might not be 100% optimal for SEO; at the same time, the amount of effort that you'd potentially spend trying to minimize the number of redirects might be more of a pain in the ass than the actual benefit you'd get from it.
Edit: Try running your URL (and variations on it -- http/https and www/non-www) through a tool like this:
http://www.redirect-checker.org/index.php
It will show you the full redirect path, which will give you a good idea as to how to fix it.