Dynamic URL Parameters + Woocommerce create 404 errors
-
Hi Guys,
Our latest Moz crawl shows a lot of 404-errors for pages that create dynamical links for users? (I guess it are dynamic links, not sure).Situation: On a page which shows products from brand X users can use the pagination icons on the bottom, or click on: View: / 24/48/All.
When a user clicks 48 the end of the link will be /?show_products=48
I think there were some pages that could show 48 products but do not exist anymore (because products are sold out for example), and that's why they show 404's and Moz reports them.How do I deal with these 404-errors? I can't set a 301-redirect because it depends on how many products are shown (it changes every time).
Should I just ignore these kind of 404-errors? Or what is the best way to handle this situation? -
Hi Dirk,
Thanks for letting me know I will post a new one to see if someone can help me out!Best,
Joost -
Joost
You might want to open a new question (on how to filter) - this question is too deep down the list & marked as answered so I fear nobody is going to see your additional question.
rgds,
Dirk
-
Hi Dirk,
I tried to find some more info last night regarding this issue (the practical part, how to implement it).
But haven't found a solution yet. Thanks for your help!! Really appreciate it.If someone knows please let me know!
Joost -
Hi Joost,
Unfortunately we don't use Wordpress in our company - I know the basics of the Yoast plugin but I am not really an expert in how to configure it. Maybe somebody else on Moz can help you on how to configure it. My guess would be to fill in the full url - you could always try & see if this works.
There are quite a lot of users on the forum who use Yoast - so I guess they should be able to help you with the configuration.
rgds,
Dirk
-
Or can I just use the canonical input field from the category (when you hit edit under the category)?
I assume that is not specfic enough and means a canonical for the "whole" category, right? -
Probably the easiest way to deal with this is to chose one of these pages as the main page & use canonicals on the other versions to the main one.
So - suppose you would chose _/?show_products=all _as the main page - than page /?show_products=48 would have /?show_products=all as canonical.
As you also use pagination - the option of the canonical offers the advantage that you can put the /?show_products_all as canonical url on all the pages (check also this page: https://support.google.com/webmasters/answer/1663744?hl=en)Another option would be to put a nofollow on the other display options. So by default people would arrive on /?show_products=24 - the links on show 48 - all would be of type "nofollow'
You might want to check this article: http://googlewebmastercentral.blogspot.be/2014/02/faceted-navigation-best-and-5-of-worst.html - the scope of the article is a bit larger than the question you as here but some of the points are applicable.
Hope this helps;
Dirk
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
-
Page Optimization Error
Hi, I am trying to track a page optimization feature for one of my project, https://shinaweb.com but i keep getting this below error: "PAGE OPTIMIZATION ERROR
On-Page Optimization | | shinawebnavid
There was a problem loading this page. Please make sure the page is loading properly and that our user-agent, rogerbot, is not blocked from accessing this page." I checked robots.txt file, it all looks fine. Not sure what is the problem? Is it a problem with Moz or the website?0 -
Getting 404 Errors on Fonts After Website Redesign
Hi, I recently redesigned my website and I changed a few URLs so I have been keeping an eye on 404 errors and setting up redirects as needed. However, my 404 error log keeps getting filled font related URLs like this: <colgroup><col width="960"></colgroup>
On-Page Optimization | | DohenyDrones
| /fonts/AvenirLTStd-Heavy.otf), url(/fonts/AvenirLTStd-Heavy.woff), url(/fonts/AvenirLTStd-Heavy.eot), url(/fonts/AvenirLTStd-Heavy.eot? |
| /fonts/FrutigerLTStd-Black.otf), url(/fonts/FrutigerLTStd-Black.woff), url(/fonts/FrutigerLTStd-Black.eot), url(/fonts/FrutigerLTStd-Black.eot? |
| /fonts/AvenirLTStd-Heavy.otf), url(/fonts/AvenirLTStd-Heavy.woff), url(/fonts/AvenirLTStd-Heavy.eot), url(/fonts/AvenirLTStd-Heavy.eot? |
| /fonts/AvenirLTStd-Book.otf), url(/fonts/AvenirLTStd-Book.woff), url(/fonts/AvenirLTStd-Book.eot), url(/fonts/AvenirLTStd-Book.eot? |
| /fonts/FrutigerLTStd-Bold.otf), url(/fonts/FrutigerLTStd-Bold.woff), url(/fonts/FrutigerLTStd-Bold.eot), url(/fonts/FrutigerLTStd-Bold.eot? |
| /fonts/FrutigerLTStd-Bold.otf), url(/fonts/FrutigerLTStd-Bold.woff), url(/fonts/FrutigerLTStd-Bold.eot), url(/fonts/FrutigerLTStd-Bold.eot? |
| /fonts/FrutigerLTStd-Black.otf), url(/fonts/FrutigerLTStd-Black.woff), url(/fonts/FrutigerLTStd-Black.eot), url(/fonts/FrutigerLTStd-Black.eot? |
| /fonts/AvenirLTStd-Book.otf), url(/fonts/AvenirLTStd-Book.woff), url(/fonts/AvenirLTStd-Book.eot), url(/fonts/AvenirLTStd-Book.eot? |
| /fonts/AvenirLTStd-Heavy.otf), url(/fonts/AvenirLTStd-Heavy.woff), url(/fonts/AvenirLTStd-Heavy.eot), url(/fonts/AvenirLTStd-Heavy.eot? | Any idea what is causing these 404 errors? Is this something that might hurt my SERP?0 -
Should I use www in my url when running On-Page Report Card?
When creating a On-Page Report Card I get 2 different results when using a WWW and without for my url. What is best?
On-Page Optimization | | thomas.wittine0 -
How to handle long dynamic meta tags?
Hi All, I have a site that has upwards of 40 000 pages and I'm redeveloping it so really want to get some SEO elements spot on for the new development. Hoe do I go about handling the following: The user creates a title for their advert which I use as the meta title. The problem is titles are quite often longer that the accepted lengths. How should I handle this? String manipulation down to the desired size, leave it as is or is there another solution? The meta descriptionn is pulled from a summary they created as part of their profile. Is this the right way to do it? Any advice would be appreciated. Ross
On-Page Optimization | | Mulith0 -
Slash at the end of a url
I keep reading contradicting information, so I figured I'll ask here. What's the best practice for slash '/' at the end of a URL? Should it be idealchooser.com/search/laptop/ or idealchooser.com/search/laptop (no trailing slash)? The options: 1. Accept both equally 2. Accept 1 and redirect the other with 301 3. Accept 1 and treat the other as a wrong URL returning 404 Which would be the best for SEO? Thank you.
On-Page Optimization | | corwin0 -
Keyword in URL
Hi everyone, I've heard many times that keyword prominence in url have a good impact for on-page optimization, even in SEOmoz it is one of the on-page factors. But what if i put keyword in URL then some of the page weight will be targeted to the page in the URL. Which in my vision makes only a negative impact. For ex. Targeted page <a>with keyword "buy car in NY" has a link with anchor text "buy car in NY" pointing on page **, so some weight from A will be transferred to B. Also I think this subject cover a cross linking, so I would like to know, what is the right way of doing cross linking and does it still brings any impact on keyword rankings in SERP.**</a> <a>**Good answer will be appreciated. Cheers, Russel**</a>
On-Page Optimization | | smokin_ace0 -
How long is too long for domain URL length?
I noticed one of the negatively correlated ranking factors was length of URL. I'm building a page from scratch, we are trying to rank for 'Minneapolis Fitness' and 'Minneapolis Massage'. Is www.minnnepolismassageandfitness.com just ridiculously long? Or does the exact match outweigh the penalty for URL length?
On-Page Optimization | | JesseCWalker2 -
Keywords in URL:
what kind of URL should we use? www.keyword.net/keyword-city or www.keyword.net/city which URL you would prefer?
On-Page Optimization | | alibeef0