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. Link Building
    4. Do I get any link juice from a PHP header redirect from another site?

    Do I get any link juice from a PHP header redirect from another site?

    Link Building
    3 2 458
    • 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.
    • David_Viciedo
      David_Viciedo last edited by

      For example would:

      www.site-A.com/click-tracking.php?site=www.site-B.com

      contain any link juice?  Would a 301 redirect be the simple solution?

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

        You can use 301 php redirects, for example:

        // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.newurl.com/"); exit(); ?>

        David_Viciedo 1 Reply Last reply Reply Quote 0
        • David_Viciedo
          David_Viciedo @David_ODonnell last edited by

          Thanks for your help, but I'm not looking for the php solution to this question, my question asks

          "Do I get any link juice from a PHP header redirect from another site (domain)?" .

          And can you legitimately do a 301 from a PHP page on one domain to another domain, I read on the interweb Amazon does it for their affiliates and it works but would like some professional confirmation.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • Buy domain, redirect, get all the good links (+link juice) and disavow the spammy ones?
            Lynn12
            Lynn12
            0
            2
            65

          • Should I ask sites that link to me to update links that redirect?
            MarieHaynes
            MarieHaynes
            0
            3
            117

          • Why am I getting links in my link report from sites that no longer exist?
            JaneCopland
            JaneCopland
            0
            4
            147

          • Linking to sites that link to porn or casinos, my site getting penalized?
            Ron10
            Ron10
            0
            3
            505

          • What benefit does a site with a low DA get from someone guest posting who links to a site with a high DA?
            JoshED
            JoshED
            0
            3
            230

          • How do you check to see if your site (site A) has already been linked to by another site (site B) when you have a large site with lots of links
            bronxpad
            bronxpad
            0
            2
            382

          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