Yoast SEO. After set up 404 error pages
-
Hello all,
Something strange happened with my blog site.
I recently signed to MOZ tools.
Initially everything was fine, but during my last crawl I got loads of 404
pages.Few days ago I was tweaking some settings in SEO plugin according to this post https://moz.com/blog/setup-wordpress-for-seo-success
What I noticed was that 404 pages were coming from my blog posts, but for
some reason category was missing in those posts.For example this link is 404
https://a-fotografy.co.uk/inchcolm-island-wedding-photography-bailieThe one with category is
https://a-fotografy.co.uk/wedding-pictures/inchcolm-island-wedding-photography-bailie/
So basically for some reason category was missing.
Please let me know how can I fix this instead of doing hundreds of
redirects now.Thank you,
Regards,
Armands -
Hi,
Thanks for response. So I went back and unchecked Strip the category base (usually
/category/
) from the category URL option and alsoRedirect attachment URLs to parent post URL. option.
Hope this will solve the problem.
Thanks,
Regards,
Armands
-
From your description, it appears that when you were tweaking your Yoast SEO settings, you changed the permalink structure in the WP Dashboard's Settings > Permalinks section from www.domain.com/�tegory%/%postname%/ to just www.domain.com/%postname%/
Doing this causes all the URLS for all posts on your site to change, which means all the original URLs are no longer correct and result in 404s.
Your two options are:
- reset your permalinks back to their original structure, and redirect whatever new posts were created since the initial change back to the /category/postname URLs
- leave the new permalink structure in place and add a blanket rewrite rule in the htaccess file to redirect all the old post URLs to the new structure without the category. (Done properly, only one redirect is needed to handle all the post URLs.)
Personally, for improved site architecture and to keep from having all your existing posts run through redirects, I'd opt for the first option above.
Hope that all makes sense?
Paul
P.S. Make certain you have a current backup of the site before making any further changes, just in case.
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
-
Purchased domain with links - redirect page by page or entire domain?
Hi, I purchased an old domain with a lot of links that I'm redirecting to my site. I want all of their links to redirect to the same page on my site so I can approach this two different ways: Entire site
Technical SEO | | ninel_P
1.) RedirectMatch 301 ^(.*)$ http://www.xyz.com or Page by page
2). Redirect 301 /retiredpage.html http://www.xyz.com/newpage.html Is there a better option I should go with in regards to SEO effectiveness? Thanks in advance!0 -
Noindex PPC landing pages or optimise for SEO?
Organic seems to be down YoY on one of the categories of a large ecommerce website that I work on. This particular category has multiple landing pages set up for PPC consisting of filtered products. So these landing pages are prone to duplicate content due to the products listed. e.g. Blue Thingamajigs White Thingamajigs Black Thingamajigs High Gloss Thingamajigs Oak Thingamajigs Glass Thingamajigs etc These landing pages do well for PPC, but are nowhere to be seen in organic (51+). The main category page however ranks quite well for quite a variety of root and longtail keywords, though not as well as it used to. For example, it does rank for "thingamajigs", "white thingamajigs", "white gloss thingamajigs" and "white gloss thingamajigs with cherries on top". Would it benefit the main category page if the PPC landing pages were noindexed? Or, despite Google's preference for the main category, work on further optimising the landing pages for SEO? Or is there another solution that I'm completely overlooking? (It is a Friday afternoon after all...)
Technical SEO | | Ria_0 -
What to do with 404 errors when you don't have a similar new page to 301 to ??
Hi If you have 404 errors for pages that you dont have similar content pages to 301 them to, should you just leave them (the 404's are optimised/qood quality with related links & branding etc) and they will eventually be de-indexed since no longer exist or should you 'remove url' in GWT ? Cheers Dan
Technical SEO | | Dan-Lawrence0 -
Language Selection Splash Page- Impact on SEO
Hi, Our site has a page for new visitors to select their language to view our website So if you type our brand adress (http://www.bdc.ca) you should be redirected to this "splash" page (http://www.bdc.ca/pages/splashpage.aspx). What is the SEO impact of doing this and is there a better way for users to choose their languages, SEO-wise (and UX wise) ? You'll also see that after the visitor select its language, he's redirected to the actual home page using a two 302 redirects ( one to bdc.ca/en/ and then another one to the actual home page). I am aware of this and I know this is really bad. Please share what you think would be the best way to manage this language selection in respect to SEO, but with respect to UX too. Thanks ! Jean-François Monfette
Technical SEO | | jfmonfette0 -
How to verify a page-by-page level 301 redirect was done correctly?
Hello, I told some tech guys to do a page-by-page relevant 301 redirect (as talked about in Matt Cutts video https://www.youtube.com/watch?v=r1lVPrYoBkA) when a company wanted to move to a new domain when their site was getting redesigned. I found out they did a 302 redirect on accident and had to fix that, so now I don't trust they did the page-by-page relevant redirect. I have a feeling they just redirected all of the pages on the old domain to the homepage of the new domain. How could I confirm this suspicion? I run the old domain through screaming frog and it only shows 1 URL - the homepage. Does that mean they took all of the pages on the old domain offline? Thanks!
Technical SEO | | EvolveCreative0 -
Odd 404 Errors in WP That I cannot find the origin
Hello Everyone, I have a really odd error that I cannot figure out how to fix. I keep getting a 404 error (through google webmaster tools, and SEOmoz) at this url http://www.cio-tech.com/cios-oracle-optimization-results-roi-justification-save-20m-over-5-years/www.SynSynAck.com... I am not even too sure how this link originated because the first part is a URL to a blog post, and the second is another website that I have. I'd appreciate any help on the matter.
Technical SEO | | Packetman0070 -
150 Duplicate page error
I am told that I have 150 duplicate page content. It seems that it is the login link on each of my pages. Is this an error? Is it something I have to change? Thanks Login/Register at http://irishdancingdress.com/wp-login.php?redirect_to=http%3A%2F%2Firishdancingdress.com%2Fdress
Technical SEO | | ukkpower0