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
-
How to get google to forget my old but still working page and list my new fully optimized page for a keyword?
Hi There! (i am beginner in seo) I have dynamic and static pages on our site. I created a static page for a specific keyword. Fully optimized it, (h1, alt, metas, etc.....maybe too optimized). My problem is that this page is alive for weeks, checked it in GWT and it is in robots.txt, google sees it, and indexed it. BUT whenewer i do a search for that keyword, we still appear with the dynamically created link in the google listings. How could i "redirect" google, if sy make a search for that keyword than shows our optimized page? Is there a tool for that? I cant delete the dynamic page... Any ideas? Thx Andrew
Technical SEO | | Neckermann0 -
Update page for better SEO score?
Hi, Is it important to update a page sometimes to score better in SEO?
Technical SEO | | parfumerienl
Or if i make a page and never change it, it would be good enough.0 -
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 -
Google Dropping Pages After SEO Clean Up
I have been using SEOmoz to clear errors from a site. There
Technical SEO | | Andy56
were over 10,000 errors to start with. Most of these were duplicate content, duplicate titles and too many links on a page. Most of the duplicate errors have now been
cleared. This has been done in two weeks (down to around 3000 errors now). But instead of improving my rankings, pages that were on the second page of Google have started to drop out of the listings altogether. The pages that are dropping out
are not related to the duplicate problems and get A grades when I run SEOmoz
page reports. Can you clean up too much too quickly or is there likely to be another reason for it?0 -
SEO plugin by Yoast messing up my title/meta description
Hey guys, I'm having some issues with my wordpress blog, and I believe SEO plugin by Yoast could be the one causing it. I have set a title for my wordpress blog, and a tagline. This was set in dashboard > settings > general Under "titles and metas" > home in the plugin it says, title: %%sitename%% %%page%% %%sep%% %%sitedesc%%, and meta description is blank. The reports on seomoz says my title is title+meta description - making it to long (to many characters). What could be the issue here? Thanks in advance!
Technical SEO | | danielpett0 -
How to set Home page for the best effect
My head is spinning with all the confusing possibilities. Does anybody have an easy answer for setting up the home page and its canonical-ishness ie Which gives the best SEO Mojo ? \ \default.aspx \keyword\ \keyword\default.aspx Thanking you in advance for reducing the number of business migranes around the globe.
Technical SEO | | blinkybill0 -
How to properly remove 404 errors
Hi, According to seomoz report I have two 404 errors on my site. (http://screencast.com/t/2FG8fA1dvGB) I removed them from google webmasters central about 2 weeks ago (http://screencast.com/t/MQ8XBvrFm ) , but they're still showing as an error in the next report (weekly update). Is there anything else you do about 404 or just remove urls through gwc? Or maybe seomoz data is delayed? Thanks in advance, JJ
Technical SEO | | jjtech0 -
Get rid of a large amount of 404 errors
Hi all, The problem:Google pointed out to me that I have a large increase of 404 errors. In short I had software before that created pages (automated) for long tale search terms and feeded them to google. Recently I quit this service and all those pages (about 500000) were deleted. Now google GWM points out about 800000 404 errors. What I noticed: I had a large amount of 404's before when I changed my website. I fixed it (proper 302) and as soon as all the 404's in GWM were gone I had around 200 visitors a day more. It seems that a clean site is better positioned. Anybody any suggestion on how to tell google that all urls starting with www.domain/webdir/ should be deleted from cache?
Technical SEO | | hometextileshop0