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
-
Do bulk 301 redirects hurt seo value?
We are working with a content based startup that needs to 301 redirect a lot of its pages to other websites. Will give you an example to help you understand. If we assume this is the startups domain and URL structure www.ourcompany.com/brand1/article What they want to do is do a 301 redirect of www.ourcompany.com/brand1/ to www.brand1.com I have never seen 301 as a problem to SEO or link juice. But in this case where all the major URLs are getting redirected to other sites i was wondering if it would have a negative effect. Right now they have just 20-30 brands but they are planning to hit a couple of hundreds this year.
Intermediate & Advanced SEO | | aaronfernandez0 -
301 Redirect from query string to new static page
If i want to create a redirect from a page where the slug ends like this "/?i=4839&mid=1000&id=41537" to a static, more SEO friendly slug like "/contact-us/", will a standard 301 redirect suffice? Thanks, Nails
Intermediate & Advanced SEO | | matt.nails0 -
301 redirecting to anchor points
A client has just given me a list of redirect URLs as requested of them. However, they're wanting to redirect a bunch of pages to various anchor points within the same page. For example: /pages/about might redirect to: /pages/our-story#our-mission And: /pages/history might redirect to: /pages/our-story#history Is there any problem with this? I've never seen or been asked to redirect like this before.
Intermediate & Advanced SEO | | muzzmoz0 -
Redirect 301 still works?
Hi, yesterday a friend said that 301 redirects does not transfer your page rank or domain autorithy anymore. I could'nt find anything in internet saying it, but I decided to ask you guys, since I think you are very reliable. so, 301 redirects wroks for transfer page rank, and i can create better domains and transfer everything, or this strategy is gone forever now?
Intermediate & Advanced SEO | | chablau0 -
Penguin and 301 redirects...
Hi, I have several questions about starting a new domain due to Penguin. The site is: http://bajajlaw.com. Quick backstory: This site was hit every time Penguin rolled out. No clean-up was done until October 2015. At that time, I took over the project. My efforts include: (1) Remove'em, (2) manual removal, (3) and the Disavow Tool. The HP went from being at around #50 for the target KW (San Diego criminal defense attorney) to about #25. Never really moved higher than that. However, I redid the content for the internal pages (DV, Theft Crimes, etc.) and they are all ranking fairly well (first page or top of 2nd). In short, the penalty only seems to affect the HP, not the internal pages. Instead of waiting for Penguin to roll-out, client wants to move forward with new domain. My questions are as follow: 1. Can I use the same content for the internal pages and 301 from the old internal pages to the new? 2. Should I 301 from the old to the new domain for the HP, or not? 3. If I do a 301 from an internal page to a new internal page, does that have the same effect of doing a 301 from the old HP to the new HP? I have read various opinions on this topic. I'd appreciate feedback from anyone who has experience doing this sort of thing. Thanks. P.s. I'm inclined to wait for P4 to rollout, but given that nobody seems to know when that might be, it's hard for me to advise client to keep waiting for it.
Intermediate & Advanced SEO | | mrodriguez14400 -
If you do 302 redirect then change to 301 redirect do you lose all link juice?
Hello everyone, I was wondering if you could help me with understanding the following story: A website has been moved from its HTTP version to a HTTPS version. The SEO manager has advised developers that they needed to do 301 redirects. However, in the end, 302 redirects have been put in place instead. Now, 301s should be put in place ASAP. The million dollar question is: has the website lost all of its link juice already given the nature of the redirects? Also, does it depend on whether Google has indexed the new 302 pages or does it depend on something else? Many thanks!
Intermediate & Advanced SEO | | MarketingGH0 -
Multilingual Site and 301 redirection
Hey there awesome people of Moz I have this site that has many languages in it. The main language is English and my developer did the following www.example.com ( is the main site ) which redirects with a 301 to www.example.com/en if your geo location is supported by our languages then you will automatically be redirected to whatever language you have in your country but does the first language with is english have to 301 redirect to www.example.com/en ? I thought that the right way is to just leave /en at the root file. Thanks in advance
Intermediate & Advanced SEO | | Angelos_Savvaidis0 -
Redirecting Powerful Domains
What do you do if you have a client that never implemented a 301 redirect on their domain? For example here are the OSE stats for the URLs; http://url.com PA: 48 DA: 50 LRD: 65 TL: 1,084 FB: 178 FB: 14 T:5 http://www.url.com PA: 51 DA: 50 LRD: 165 TL: 2,271 FB: 178 FB: 14 T:5 G+1:3 My first instincts are to redirect the first one to the second one, but is it too late for that? Will that screw up all of their established stats? Any input or examples of past experiences with this would be great.
Intermediate & Advanced SEO | | MichaelWeisbaum0