What are the best ways to fix 404 errors?
-
I recently changed the url of my main blog and now have about 100 404 errors. I did a redirect from the old url to the new one however still have errors.
1. Should I do a 301 redirect from each old blog post url to the new blog post url?
2. Should I just delete the old blog post (url) and rewrite the blog post?
I"m not concerned about links to the old posts as a lot of them do not have many links.
-
Thanks Andy. I made this change........domain.com/blue-blog to domain.com/blog using a rewriterule. It seemed to work.
-
I did change the structure domain.com/blue-blog to domain.com/blog. So I did a rewrite rule in the .htaccess file. That fixed a lot of things however there are still 100 or so 404's. They are old blog posts and not really that important.
-
As tom says 404 errors are not the end of the world.
if you are concerned then as long as the relative urls have remained the same and the root directory is all that has changes a 301 in bulk should work, though if you've changed categories or something it may not work so well as a single entity and 100 would be the way to go.
Something that you should do, if you've not already, is within webmaster tools make sure you tell Google you've changed your url (configuration > change address) - it also has a mini guide on the steps you should be taking, including to register your new domain on webmaster tools.
But again, as tom says, if it's not destroying the user experience and isn't a huge annoyance for visitors don't worry too much about it.
--
Just for your reference a full url redirect (aka changing say abc.com to abc.net - moving all directories and urls in one go) would look like
RedirectMatch 301 ^(.*)$ http://www.abc.net
-
Are we talking about a structural change (i.e. domain.com/blog to domain.com/myblog) or a TLD change (domain.com to domain2.com)? If you kept the same blog structure otherwise, I would write a .htaccess file to make sure you just blanket redirect all URLs. It's easy to do that way but not everyone has access to that.
I recommend 301s just because they avoid the sloppiness problem. I mean, you wrote the content for people to find, right? If they hit a 404 it just frustrates them. It doesn't matter whether or not you need the SEO, I like it when a 301 takes me where I really need to go. it shows someone cared enough to make sure I could get to what they had done. It's a pride of authorship thing.
-
Hi Nathan
If you're not concerned about passing the links/link equity of the old posts to a new page, or if you don't think there are any users visiting the URL directly, then I would simply leave the page as a 404 error.
404s are a natural part of the course and Google recognises this - check out this webmaster blog post. 100 404s isn't an awful lot, so I wouldn't worry about them unless they're interrupting a user journey (which you'll be able to check in analytics).
If you really want to get rid of them, then a 301 would be the way to go in my opinion. 100 301s will not slow down your .htaccess file by any noticeable margin. But overall, I'd let the 404s be 404s.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Best way to get love from expired domain
Hi so i have bought a couple of expired domains (which when they were live had good PA , link profile etc) my question is is it better to just 301 the domains to my main site or to set up a "landing page" for the expired domain and then put a number of links on this page to my main site which would give me the most benefit google-wise ? obviously 301ing would be the easiest !
Intermediate & Advanced SEO | | odysseytravels0 -
The Consequences & Best Practices In Changing Domains
Working with a long established/organic successful site that, for brand reasons I disagree with, is verging on changing its domain name. Other than 301ing individual pages to their new domain name equivalent, getting canonicals updated, updating SSL certificates, new Google Search Console with old settings, maintaining the old robots.txtetc what else is worth paying attention to? Assuming I do all of that, how bad a hit to organic over what period of time might this result in? 6 months ago we migrated to https and that was hardly felt, but this is really a brand new domain name altogether. Thanks!
Intermediate & Advanced SEO | | 945010 -
What are partial urls and why this is causing a sitemap error?
Hi mozzers, I have a client that recorded 7 errors when generating Xml sitemap. One of the errors appear to be coming from partial urls and apparently I would need to exclude them from sitemap. What are they exactly and why would they cause an error in the sitemap. Thanks!
Intermediate & Advanced SEO | | Ideas-Money-Art0 -
We are moving one website to a different domain and would like to know what is the best way to do it without hurting SEO
The website we want to move, let's say www.olddomain.com has a low quality back links profile, in fact it received a manual notification from google of unnatural links detected; but the home page has a PR 3. We want to move it to a different domain let's say www.newdomain.com. We would like to know if it's better to do a 301 redirect to the new domain, in order to transfer the link juice or if it would be better to do a 302, taking into account that this redirect won't pass any link juice, so it would be like start from scratch with this new domain. Thanks for your help.
Intermediate & Advanced SEO | | DoitWiser0 -
Can we retrieve all 404 pages of my site?
Hi, Can we retrieve all 404 pages of my site? is there any syntax i can use in Google search to list just pages that give 404? Tool/Site that can scan all pages in Google Index and give me this report. Thanks
Intermediate & Advanced SEO | | mtthompsons0 -
Should i fix 404 my errors?
We have about 250, 404 errors due to changing alot of page names throughout our site. I've read some articles saying to leave them and eventually they will go away. Normally I would do a 301 redirect. What's the best solution?
Intermediate & Advanced SEO | | JimDirectMailCoach0 -
Should I remove 404 urls in webmaster tools?
I've recently removed a lot of category pages so should I remove the urls in webmaster tools or let them drop out of the index naturally?
Intermediate & Advanced SEO | | SamCUK0 -
What is the best way to embed PDF documents for SEO?
I have been using SCRIBD to embed PDF documents on my site but until recently I did not include the link back to SCRIBD. Will my site get credit for this content or will it go to SCRIBD? Is there a better way to embed PDF documents for SEO?
Intermediate & Advanced SEO | | casper4340