The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Technical SEO Issues
    4. Javascript redirects -- what are the SEO pitfalls?

    Javascript redirects -- what are the SEO pitfalls?

    Technical SEO Issues
    2 2 4.7k
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • FR123
      FR123 last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • customerparadigm.com
        customerparadigm.com last edited by

        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.html

        That 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 reach

        It'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

        1 Reply Last reply Reply Quote 3
        • 1 / 1
        • First post
          Last post
        • Javascript redirects harmful for SEO?
          WeAreDigital_BE
          WeAreDigital_BE
          0
          6
          2.8k

        • Brushing up on my SEO skills - how do I check my website to see if Javascript is blocking search engines from crawling the links within a javascript-enabled drop down menu?
          Martijn_Scheijbeler
          Martijn_Scheijbeler
          0
          3
          64

        • JavaScript page loader - SEO impact
          MattRoney
          MattRoney
          0
          3
          708

        • Redirect to a new domain and seo effects
          Daniel_Marks
          Daniel_Marks
          0
          6
          176

        • SEO Redirect
          JaneCopland
          JaneCopland
          0
          4
          73

        • Redirect a 301 Redirect
          RedCaffeine
          RedCaffeine
          0
          5
          98

        • 301 redirects and seo..
          samerk
          samerk
          0
          3
          308

        • Redirect or not to redirect
          AlanMosley
          AlanMosley
          0
          7
          458

        Get started with Moz Pro!

        Unlock the power of advanced SEO tools and data-driven insights.

        Start my free trial
        Products
        • Moz Pro
        • Moz Local
        • Moz API
        • Moz Data
        • STAT
        • Product Updates
        Moz Solutions
        • SMB Solutions
        • Agency Solutions
        • Enterprise Solutions
        • Digital Marketers
        Free SEO Tools
        • Domain Authority Checker
        • Link Explorer
        • Keyword Explorer
        • Competitive Research
        • Brand Authority Checker
        • Local Citation Checker
        • MozBar Extension
        • MozCast
        Resources
        • Blog
        • SEO Learning Center
        • Help Hub
        • Beginner's Guide to SEO
        • How-to Guides
        • Moz Academy
        • API Docs
        About Moz
        • About
        • Team
        • Careers
        • Contact
        Why Moz
        • Case Studies
        • Testimonials
        Get Involved
        • Become an Affiliate
        • MozCon
        • Webinars
        • Practical Marketer Series
        • MozPod
        Connect with us

        Contact the Help team

        Join our newsletter
        Moz logo
        © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
        • Accessibility
        • Terms of Use
        • Privacy