Javascript redirects -- what are the SEO pitfalls?
-
Q: Is it dangerous (SEO fallout) to use javascript redirects?
Tech team built a browser side tool for me to easily redirect old/broken links. This is essentially a glorified 400 page -- pops a quick message that the page requested no longer exists and that we're automatically sending you to a page that has the content you are looking. Tech team does not have the bandwidth to handle this via apache and this tool is what they came up with for me to deliver a better customer experience.
Back story: very large site and I'm dealing with thousands of pages that could/should/need to be redirected. My issue is incredibly similar to what Rand mentioned way back in a post from 2009: Are 404 Pages Always Bad for SEO? We've also decided to let these pages 404 and monitor for anything that needs an apache redirect. Tool mentioned above was tech's idea to give me "the power" to manage redirects.
What do you think?
-
My $0.02 is that javascript might work for your site, but it's not going to give you the benefits that 301 redirects will offer to you.
According to Google's Official Webmaster Central Blog, as of May 23, 2014, Google is able to execute Javascript:
http://googlewebmastercentral.blogspot.ca/2014/05/understanding-web-pages-better.htmlThat said, if you have your javascript or CSS in separate files, and are blocked with robots.txt, according to Google, they won't be able to execute it. And according to the post, they can't process all javascript.
It's not a bad thing to have 404 pages for pages that you want to kill off and let die. If you do have important inbound links, though, it's better to 301 redirect them and keep 85% of the link strength. More backup on this:
According to Rand Fishkin's Moz blog writeup, Are 404 Pages Always Bad for SEO?
http://moz.com/blog/are-404-pages-always-bad-for-seo"When faced with 404s, my thinking is that unless the page:
A) Receives important links to it from external sources (Google Webmaster Tools is great for this)
B) Is receiving a substantive quantity of visitor traffic
and/or C) Has an obvious URL that visitors/links intended to reachIt's OK to let it 404."
According to Moz's Redirection SEO Best Practice:
http://moz.com/learn/seo/redirection
... you want to use a 301 redirect to indicate that the content has moved permanently.I hope this helps!
-- Jeff
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
-
To many 301 redirects
Hi, Is there anything wrong with over 100 301 reditects on my wordpress website and how do you go about redirecting a 301 again for example abc.com redirects to bca.com now i want to redirect bca.com to ert.com any problems with this setup? Regards
Technical SEO | | ReSEOlve0 -
Website analysis for SEO
Hi, We have been trying to gain ranking for 7 keywords for a year now but have been unsuccessful We are not sure where we are going wrong, if someone could please help us out, we are happy to pay for your time.
Technical SEO | | mframing0 -
IP redirect possible SEO issues?
Hi I help manage a small eCommerce business that sells worldwide. We currently have 4 stores www.tidy-books.com (US site) www.tidy-books.co.uk (UK) www.tidy-books.eu (EU) www.tidy-bboks.com.au (AU) We have auto redirect based on the country of your IP. The .com is the route address though. Currently I have decided to focus all my energies with link building etc on .com as it seems to carry the most weight and being a very small team we don't have the resources for separate campaigns for all websites at the moment. Whilst I've done on site SEO with country in mind i.e for US kids instead of children. I'm just wondering if you can see any pitfalls in this approach, Ideally I would like to have a team focus on each store separately and have them as separate domains but with the IP redirect we at least rank well in Google for the .com and the customers gets sent to the relevant store. Any thoughts would be great
Technical SEO | | tidybooks0 -
How to start more deep seo.
Okay, lets say that I already fixed all my technical seo stuff. All my crawl errors and warnings are gone. Now I really want to start seo so I have a few questions. 1. I know I should work based on a page and not on a domain, so it means I should choose which keyword to optimize each page for? only one keyword per page? or it might be more? 2. Some keywords are very competitive for me, example for my site www.theprinterdepo.com, the best keyword to rank would be printers, but it would take years a beginner to do that, what should I do? 3. If highly competitive keywords are not an option, which keywords shuold I use? the ones that have more global monthly searches? Thanks
Technical SEO | | levalencia10 -
301 redirect or 302
A client of mine has an international company named www.taxglobalizers.com if you come from Holland they 302 redirect you to the www.taxglobalizers.com/en version of the site and if you come from Holland they redirect with a 302 to www.taxglobalizers.com/nl version. I think it is best to change this in a 301 redirect. Am i correct in this? Kind Regards, Ruud
Technical SEO | | RuudHeijnen0 -
Redirecting According to the occasion
We have loads of different departments that relate to specific occasions (e.g. Christmas, mothers day, father day etc), they all have good PR and inbound links etc and most of them rank well for the specific occasion. What I was thinking is that I could redirect all of the occasions that aren’t in use and send the traffic to the valid occasion live at the moment. So I would 301 all the Christmas pages to our valentine’s day main page. Then once valentines is gone I will redirect Christmas and valentines to the mothers day main page and so on. So this would be constantly switching as different occasions come along. Can you see any possible negative problems? Is there any chance that if I redirect Christmas for example, and then when Christmas comes we remove the redirect, could it harm the Christmas page?
Technical SEO | | steliosp210 -
How can i redirect a url that has % in it?
Google webmaster tools shows a 400 eroor for an old link that contains a 30% off in it. The problem is the % I would like to 301 redirect this link : http://www.geographics.com/Graduation-Stationery,-35%-OFF-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html to http://www.geographics.com/Graduation-Stationery-Printable-Certificates-Blank-Gift-Certificates/c1353_1354_1359/index.html We do not know how to do this in httaccess. Can you please advise? Thanks a lot! Madlena
Technical SEO | | Madlena0 -
Is a 302 redirect the correct redirect from a root URL to a detail page?
Hi guys The widely followed SEO best practice is that 301 redirects should be used instead of 302 redirects when it is a permanent redirect that is required. Matt Cutts said last year that 302 redirects should "only" be used for temporary redirects. http://www.seomoz.org/blog/whiteboard-interview-googles-matt-cutts-on-redirects-trust-more For a site that I am looking at the SEO Moz Crawll Diagnostics tool lists as an issue that the URL / redirects to www.abc.com/Pages/default.aspx with a 302 redirect. On further searching I found that on a Google Support forum (http://www.google.com/support/forum/p/Webmasters/thread?tid=276539078ba67f48&hl=en) that a Google Employee had said "For what it's worth, a 302 redirect is the correct redirect from a root URL to a detail page (such as from "/" to "/sites/bursa/"). This is one of the few situations where a 302 redirect is preferred over a 301 redirect." Can anyone confirm if it is the case that "a 302 redirect is the correct redirect from a root URL to a detail page"? And if so why as I haven't found an explanation. If it is the correct best practice then should redirects of this nature be removed from displaying as issues in the SEO Moz Crawll Diagnostics tool Thanks for your help
Technical SEO | | CPU0