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 harmful for SEO?

    Javascript redirects harmful for SEO?

    Technical SEO Issues
    6 3 2.8k
    • 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.
    • WeAreDigital_BE
      WeAreDigital_BE last edited by

      Hi Mozzers,

      A website deals with some javascript redirects. After some research, It came clear a normal 301 is the best option, but javascript redirects can be useful if you don't have access to a website' server.

      Does anyone have experience with javascript redirects? Can they be harmful in any point of SEO?

      I would love to hear your thoughts!

      1 Reply Last reply Reply Quote 0
      • Roman-Delcarmen
        Roman-Delcarmen last edited by

        Let me understand, you want an opinion of "javascript redirects" vs "apache". So you have access to root file bust you don't have access to the Cpanel or Apache or another web server.

        WeAreDigital_BE 1 Reply Last reply Reply Quote 1
        • WeAreDigital_BE
          WeAreDigital_BE @Roman-Delcarmen last edited by

          Hi Roman,

          That's basically it. When people don't have access to the Cpanel, Apache or another web server, they can use javascript redirects. But do they pass for example equal link juice as a 301? Or are they any disadvantages on using javascript redirects? So as you said, I would like to hear an opinion on javascript redirects vs apache.

          Thanks, 
          Jens

          ThompsonPaul 1 Reply Last reply Reply Quote 0
          • ThompsonPaul
            ThompsonPaul last edited by

            Doing redirects in JavaScript is definitely a "better than nothing" solution, rather than anything that should be recommended. It means placing your trust in something in that is supposed to work work, as opposed to something that definitely will.

            I'd make sure there really was no way to do the redirects properly first, before falling back to the last-ditch solution.

            Here's a test from a year ago that showed ranking authority was passing through JS redirects, but note all the caveats they include (especially that Bing didn't handle this at all at the time).
            https://www.branded3.com/blog/seo-javascript-redirects-evidence-pass-pagerank/

            Hope that helps?

            Paul

            WeAreDigital_BE 1 Reply Last reply Reply Quote 1
            • ThompsonPaul
              ThompsonPaul @WeAreDigital_BE last edited by

              Just to be clear here - you don't need access to the Apache webserver to manage proper redirects. As long as you have folder access to the website (FTP, command line etc) you can generate an htaccess file that will take care of it. (And not having this access means you basically have no real control of the website.)

              P.

              1 Reply Last reply Reply Quote 0
              • WeAreDigital_BE
                WeAreDigital_BE @ThompsonPaul last edited by

                Hi Paul,

                This definitely helps!

                Thanks for your answers and the link to the blogpost!

                Kind regards,
                Jens

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Redirection chain and Javascript Redirect
                  0
                  1
                  19

                • Domain forwarding or redirects for SEO?
                  Tenlo
                  Tenlo
                  0
                  2
                  371

                • Redirect a 301 Redirect
                  RedCaffeine
                  RedCaffeine
                  0
                  5
                  98

                • Would this harm my SEO?
                  Rephael
                  Rephael
                  0
                  3
                  144

                • Redirecting Domain will cause SEO?
                  ske11
                  ske11
                  0
                  3
                  231

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

                • Domain redirect seo
                  mediabase
                  mediabase
                  0
                  3
                  569

                • 301 Redirects - SEO Benefit?
                  Thos003
                  Thos003
                  0
                  3
                  1.7k

                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