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
          • Redirecting dofollow, high-domain-authority links from one site to another: good idea?
            mkupfer
            mkupfer
            0
            2
            70

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

          • Why my twitter handle link is not getting counted in links, though for other sites it is counting!
            matbennett
            matbennett
            0
            3
            391

          • 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

          • For a new site, does it matter which sites I get back links from first? I.e., are the first back links more important than later ones?
            sigma3x
            sigma3x
            0
            7
            5.8k

          • I am seeking a high quality sites to submit articles for free in order to get links. Can you recommend me on those sites?
            AndyKuiper
            AndyKuiper
            0
            4
            813

          • Hey guys wondering which is more important getting links from authority sites or relevant sites?
            shrikey
            shrikey
            0
            5
            849

          • New ways to get links (excluding on site link bait)?
            ref.price
            ref.price
            0
            4
            1.0k

          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