How to resolve recurring 302 redirects?
-
In my Moz site crawl there is a fluctuating number of 302 redirect pages that don't physically exist - most are through a 'compare product' option. The number of 302s varies significantly by how many pages Rogerbot has crawled - the more pages crawled, the higher the number of 302s, so I'm pretty sure it's the 'compare product' that's causing the issue.
I can't find a way to remove the compare product button so I need another way to resolve it. I can;t canonicalise the pages as they don't exist as such. Does anyone have any ideas?
-
In that case I wouldn't worry
If you want to crawl a version of your site without those parameters Screaming Frog allows you to exclude any specific parameters by going to configuration > URL rewriting.
Best of luck!
-
Hi Sergey,
You're spot on with the question and to be honest I feel a bit daft for not thinking of parameters before! (Doh!) But it doesn't seem to be an issue with Google - only other bots like Moz and Screaming Frog seem to pick it up which strikes me as strange.
Thanks for your answer though - very helpful!
-
Hi there!
Good question. First of all, it sounds like the 302 is necessary for the functionality of the site. If I'm understanding correctly, a user has the option to add an item on your site to a "compare" cart and if a user does that the page reloads (with the item in the "compare" cart) as a 302. Often times this is done with a parameter.
So it looks something like this?
/example-product/ > 302 > /example-product/?compare=list
If this is the case, I would try taking that parameter and letting Google know not to crawl pages that have it in. You can do this in Google Search Console. Here's a great guide from Google on parameters, exclusions, and what we can do with them.
Please let me know if I misunderstood the question. Hope that helps!
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
-
If I have set up my www as a cname, do I still need to add a redirect?
Hello, I am trying to minimize my redirect chains that have been popping up in my Moz crawl issues. So I'd like to get clear on some best practices. I have a few clients that are getting their first redesign in a while. We are moving into Wordpress from good ole .html files. So I've installed a redirection plug in to create 301 redirects for those .html versions of the pages. But apparently I am already redirecting from www to non-www. I have the www set up as a CNAME going to the IP address - is that counting as the redirection? Sometimes though, the www is set up by making it an A record. Is one way better than the other? Finally, I'm forcing https for all my new sites now. Is whatever the host does to "force" https also counting as a redirect and contributing to my chain? Any advice will be appreciated!
Moz Pro | | Dandelion0 -
Why does Moz show 302s that I previously resolved?
So Moz was flagging thousands of 302 errors in the Redirect Issues section. It was due to the URL extensions containing /directory/currency/switch/currency/ I added this to my Robots.txt file as I don't want these indexed. I marked the 302 errors as fixed and after the next crawl they came back and I now get the message: One or more previously fixed issues continue to persist. We have found one or more issues that were marked as fixed previously in the last crawl. Do I just ignore the errors or is there something wrong that I may be doing? Any help would be much appreciated. Thank you.
Moz Pro | | lbagley0 -
Only 2 Inbound Links which are the Redirect 301 Links
Hello Everyone, We're having a serious Problem with the ranking of our website so we started testing the website in different Tools. Almost all of the tools say our website works great and in comparision to our competitors we win in almost every test – but we rank behind them. The only thing that makes me wonder is the fact that our website has only 2 Inbound links (Open Site Explorer) when the link source is set to only internal. And the only links shown are 2 links that come from the old http (we're using https) and redirect 301 to our https. No other links – in other tools we have around 80 internal links to our rmain https-webadress. Does anyone have an idea where that comes from? I'm afraid this might be our issue in ranking behind of lots of our competitors. Lokking forward to your ideas and suggestions.
Moz Pro | | Franksen3o3
Greets Frank0 -
Need Help with www and non-www redirect
Hi everyone, I've been looking around the forum and found some similar topics but none of them have solved my problem. Anyway, I'm new to SEO and found that when I use Open Site Explorer for the www version of my site I see the links directed to my page, but none of my twitter stats show up. When I do the same for my non-www version. I see my twitter stats, but no links. Facebook seems unchanged. Also, the Page Authority is much higher for the www (I assume because of the links) It is my understanding that it doesn't matter which version of the domain is used, I just need to pick one and stick with it (on Google Webmaster Tools, etc.). And that I also need to do a 301 redirect for the version that I'm not using. The issue now is that I have a 301 redirect, and when I type in my url in any version (http, https, www, non-www) it all redirects in the browser without issue. So i know users are getting to the right page, but the Open Site Explorer still sees them as 2 different sites. My concern is that if Open Site Explorer sees it this way then Google may see it this way as well and I could be missing out on potential rankings. I'm currently doing the redirect in the .htaccess file. The redirect looks like this: RewriteEngine On
Moz Pro | | opstart
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://mydomain.com/$1 [R=301,L] Any Ideas on what I need to do to properly 301 redirect the site so that my preferred version can get credited with the links,twitter, and Page Authority stats? Also, I'm using wordpress and it has the URL set to the non-www version of the site. However, I think I would like to change this to the www version because most of the links are directing to www, and I also think people are more familiar with that format. Anyway, sorry for the long post. Any help would be greatly appreciated. Thanks.0 -
Unable to get into top 20 even when pages are optimized and most crawl issues resolved
I have a few keyword phrases I've been trying to rank in the top 20 for (starting place). I have optimized for a few different phrases, ranging in keyword difficulty, but no matter what I do I can't seem to get in. In many cases, the exact same results show up for many different variations of the phrases I'd like to rank for. I've read about how google tries to match user intent and so if it decides those results are more relevant then it will always show them, but does that mean that no matter what I do I will always be behind them? The main question I have is: how should I proceed? Should I stop optimizing pages and focus on link acquisition? Or go through and make sure there isn't a single crawl issue? Or focus on optimizing for longer tail keyword phrases? It just feels like I've done so much of what the moz tools have recommended and I'm seeing very little movement over the past couple of months, if anything I see dips in performance after optimization. Thanks in advance!
Moz Pro | | Dynata_panel_marketing1 -
Magento- Temporary Redirects
Hey guys! My organization just launched an eCommerce site and we are receiving a lot of temporary redirect issues. How do you solve this issue (36k of them) within Magento Enterprise? 1. All settings have been changed to 301 redirects but I am still receiving the same errors during my crawl report. 2. Website URL = www.CanyonOS.com Any support or advice is greatly appreciated! Oh and if you need any toner, you know where to go :)! Sincerely,
Moz Pro | | CanyonOS0 -
The right GA account is not populating as an option. Can I redirect to a GA account not listed?
When setting up a campaign, Moz provides a number of Google Analytic options, however not the one that pertains to the specific URL for the campaign. Is there a setting I need to change to allow for the right GA account to populate? Or, can I enter this manually?
Moz Pro | | mmetzger0 -
How long will it take for Page Rank (or Page Authority) to flow via a 301 redirect?
I've recently redeveloped a static site using WordPress and have created 301 redirects for the original urls to the new urls. I know I won't get all the value passed via the 301, but I'm hoping some will. Any idea how long this may take? It's been nearly a month since the changeover so wondering if it would be weeks, months or more?
Moz Pro | | annomd0