Multiple 301 redirects considered a redirection chain?
-
I need to redirect a ton of duplicate content, so I want to try
redirect 301 /store/index.php /store
redirect 301 /store/product-old /store/product-new
redirect 301 /store/product-old1 /store/product-new1
redirect 301 /store/product-old2 /store/product-new2
redirect 301 /store/product-old3 /store/product-new3
redirect 301 /store/product-old4/file.html /store/product-old4/new4/file.html
and then a whole bunch of old dead links to homepage.
So we've had /index.php redirected to / on other parts of the site for awhile, and for the most part /store is a friendly URL, but then we have tons of dup content and work arounds that preceded my job here. I'm wondering if those redirects above would be considered a redirection chain? Since the all the redirects below the /index.php -> /store count on that one redirect.
Thanks for any insight you may be able to give!
-
301 redirecting an old, no longer existing page to the homepage or any other page (I'd suggest using the closest matching existing page) is certainly not a violation of google's guidelines.
-
As far as 'header redirect' are you talking about a meta refresh redirect rather than a 301 htaccess redirect? I thought meta refresh redirects were not necessarily a good thing to do in the eyes of search engines?
Also, isn't redirecting a URL of a page that no longer exists to the home page actually a violation of Google's guidelines?
I'm currently doing a project to resolve many 404s being reported in Google Webmaster account.
Many of them are simply malformed URLs (live URLs with a period at the end or a comma or an equal sign, etc.) from the referrer's side - yet some carry a vaulable backlink authority, so they should be 301'd, in my opinion to the intended URL, when that is obvious.
However, if there is no longer a close match page - say for an old but valued backlink - to ideally redirect to, is it OK to - in attempt to retain the backlink value - redirect what are really 404 pages to the homepage or a top landing page? If so, is there a limit to the number of redirects to resolve a 404?
Thanks for any clarification of the issue raised above.
-
Ask if you can do header code injection where you can dump code blocks in the header.
-
Yeah I might have to seek help on the magento boards.
-
WP has to have a 404 handler someplace in their admin section. At least the dead pages you can redirect, but I do not know if WP will 301 those.
Then yes, you have to use your .htaccess file to shift those pages. What a mess! Write them all down and carefully map them out. I would still test the page to see if it has any inbound links, if not, I might let the 404 handler handle that link to save editing.
I would also as WP or Magento or their message boards if any of them have this same problem and see if there are any plug-in fixes.
-
There are both indexed and internally linked urls that need to be redirected properly. Using two CMS's WP and Magento and I'm not too much of a php wiz so I really am not following. besides the product pages still being linked there are like 1000 more 404 pages that need to be redirected to the homepage. Would mod rewrite be better here?
And Barry, yes I guess so, just found out about it, trying to understnad wth is goin on here. Looks like mage redirects a couple times on its own as well? Who knows, it's puttin me to sleep lol. Hopefully I can find out more tomorrow. Thanks for the answers guys +1
-
Are you using Magento's funny built in redirect tool? I've never really understood how that worked
-
Wow, this is not fun
Yes, you can get down the chain too many times and your browser just pukes. And likely Google will give up.
- Test the OLD page(2) to see if it has any inbound links or page authority. If not, then a redirect is not necessary. Yes, the page still might be indexed, but I would do a header redirect with a 301 instead of using the .htaccess file. It is on the fly and much cleaner.
Depending on how your site is coded, you can test the page in PHP.
- Find incoming URL
- Test against database
- Send to new location
Simply take the incoming URL and pull the location in the _HEADER. Then look at your database that you set up with all these redirects. Then redirect the user to the new page and 301 the redirect in the header.
All the work you do is then in the database. Look at Google Webmaster for 404 pages and adjust the database. I would also then state that if I found no URL within the database (good or old) then I would redirect to the home page and 301 that. This way you do not lose any link juice and keep your 301 chain down to one dynamic hop.
I hope that helps
-
No trouble I'm quick with the mouse. That's why I like doin this stuff around 4am haha. Thanks anyway Barry.
You might be onto something, it's magento which I have limited to no knowledge of how it redirects, I'm sure that's the deal I'll look into it but after I need sleep soooo tired
-
I might bow out gracefully before I get you in any more trouble But I'll see what I can replicate and test What would be the raw URL of the electronics pages?
Is it actually rewriting from something like /store/index.php?id=electronics or is it /store/electronics.php (or even /store/electronics/index.php)? Or are you on a CMS that make it hard to tell?
-
redirect 301 /store/index.php /store
redirect 301 /store/electronics1 /store/electronics
that's pretty much it
-
Talk me through it again then, please.
You're trying to get to /store/product-new1 and you're getting a 310?
Did I get the redirect thing mixed up and actually there's another redirect because the real URL would be /store/product-new1/index.php?
-
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects.
-
Yeah there's certain cases, sometimes all, where /old will go through the first /index.php redirect to be able to get to /new
Yeah I guess you have a point, but for some reason it feels wrong. Google hasn't crawled this site for almost a month lol. So when it finally does, everything's gonna be so different it might just be like AHHH.
Thanks for the help.
-
If I understand correctly I'm going to say no (with a low degree of certainty :D).
So /store/product-old1 you are assuming already goes through /store/index.php?id=product-old1 (or similar) to produce that first url?
So to get to /store/product-new1 from a link to /store/product-old1 you're wondering how many steps your .htaccess puts it through?
I'll have to let somebody with better .htaccess skills than mine confirm, but I think it's all resolved as one, in sequence, if it's on the same server (and set up correctly). I'm maybe talking nonsense though.
However if it was a chain then, for example, somebody going to my WordPress site using mysite.com/page1 would end up at www.mysite.com/redirected-page1/ and after hitting about 4 redirects (www, permalinks, redirect and trailing slash) and I've not seen anything to suggest that it's a problem.
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
-
301 Redirects for Multiple Language Sites in htaccess File
Hi everyone, I have a site on a subdomain that has multiple languages set up at the domain level: https://mysite.site.com, https://mysite.site.fr , https://mysite.site.es , https://mysite.site.de , etc. We are migrating to a new subdomain and I am trying to create 301 redirects within the htaccess file, but I am a bit lost on how to do this as it seems you have to go from a relative url to an absolute - which would be fine if I was only doing this for the english site, but I'm not. It doesn't seem like I can go from absolute url to an absolute url - but I could be wrong. I am new to editing the htaccess file - so I could definitely use some advice here. Thanks.
Intermediate & Advanced SEO | | amberprata0 -
Redirect Chains
Hi There, I have had conducted a few migrations recently and have a common issue which is this: HTTP (old site) -> HTTPS (old site) -> (HTTPS) (new site) Which causes a redirect chain. How should you prevent this before migration or fix it after migration? Cheers.
Intermediate & Advanced SEO | | kayl870 -
Should we 301 redirect old events pages on a website?
We have a client that has an events category section that is filled to the brim with past events webpages. Another issue is that these old events webpages all contain duplicate meta description tags, so we are concerned that Google might be penalizing our client's website for this issue. Our client does not want to create specialized meta description tags for these old events pages. Would it be a good idea to 301 redirect these old events landing pages to the main events category page to pass off link equity & remove the duplicate meta description tag issue? This seems drastic (we even noticed that searchmarketingexpo.com is keeping their old events pages). However it seems like these old events webpages offer little value to our website visitors. Any feedback would be much appreciated.
Intermediate & Advanced SEO | | RosemaryB0 -
404 ? 301 ? What is your opinion ?
Hi, I have a classifieds website and I am wondering about the life of a page with an ad. An announcement has therefore a limited life, so : Is a 404 pages? a 301 redirect to the section? let the content without redirection? What is your opinion? Sorry for my english, i'm french 😉 Thanks. A.
Intermediate & Advanced SEO | | android_lyon0 -
How to 301 redirect old wordpress category?
Hi All, In order to avoid duplication errors we've decided to redirect old categories (merge some categories).
Intermediate & Advanced SEO | | BeytzNet
In the past we have been very generous with the number of categories we assigned each post. One category needs to be redirected back to blog home (removed completely) while a couple others should be merged. Afterwords we will re-categorize some of the old posts. What is the proper way to do so?
We are not technical, Is there a plugin that can assist? Thanks0 -
Multiple domains?
I do own a domain for my business right now, and would have a few questions, regarding the increase or traffic for my website and getting new business 1. Is it worth to purchase multiple domains, keyword search relevant, to my business? 2. If so how is the best way to use it? : have them redirect to my own website? a specific type of redirect? do I make a separate website for each of them? 3. for ex if the keyword is " tile and grout". I figured would be best to own "tileandgrout.com". How about "tile-and-grout.com"? thank you in advance
Intermediate & Advanced SEO | | DavidIRC0 -
Does 301 Redirect solve many problems?
Hi, there are many problems with my site. I have a lot of duplicate page titles and a lot of missing meta tags. However, I think most of them are BECAUSE i have a lot of duplicate pages. So I have read some articles and I will 301 redirect all the duplicated pages. Will this solve the problem with duplicate titles and missing meta tags as well? For example, my homepage has like 10 duplicated pages. Since they are duplicated, they have the same titles and they are all missing meta tags. I am planning to fill in meta tags JUST for the canonical page and redirect all duplicated pages to that page. Is this a good practice? Also, just curious, do different title tags and different meta tag description make the pages "not duplicated?" I assume it will still appear as duplicated.... Sorry if this was confusing...
Intermediate & Advanced SEO | | waltergah0 -
301 Redirect - What happens to backlinks
Hello... One of my sites is losing rankings in G. I received the webmaster notification of unnatural links... My question is, should i do a 301 redirect of every page on my site to a new domain? If so, do the backlinks (which i believe are causing my rankings to drop) carry over? How about the good backlinks? Also, what would happen to the rankings i currently have on page 1? Thanks
Intermediate & Advanced SEO | | Prime850