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. Affiliate Marketing
    4. Any issues with a simple php redirect?

    Any issues with a simple php redirect?

    Affiliate Marketing
    6 3 1.4k
    • 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.
    • JasonBrown65
      JasonBrown65 last edited by

      Hi,

      I have used a simple php redirect for one site that it used for an affiliate link. Always used it, cant remember the exact reason I did but most likely to make the url pretty 🙂

      On the crawl stats of this domain it shows as a 302 redirect - does this have any issues?

      What do people recommend for affiliate links? Cloaking? Tracking?

      There are a number of wordpress plugins available that seem to be aimed at affiliate links, any recommendations? I assume that they will still be classed as 302's.

      Any advice gratefully received.

      Thanks

      Jason

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

        I'm not an SEO pro but I've been doing redirects using my .htaccess. I'd like to know the answer as well.

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

          .htaccess is the way to go in my opinion.

          Always use 301 redirects over 302 redirects.

          Google passes on about 90% of link value through a 301 redirect and no link value through a 302.

          I hope this answers your question.

          JasonBrown65 1 Reply Last reply Reply Quote 1
          • JasonBrown65
            JasonBrown65 @A_Q last edited by

            Hi Elias

            Thanks for answering.  We are not trying to pass any link value to the affiliate site.  We just want to make the links look 'pretty' rather than a url of random numbers and letters.

            When SEO moz completes a crawl it shows these redirects as 302 redirects.  We don't want to pass link value to the affiliate site so we didn't use a 301 redirect.

            So does the 302 redirect potential hurt rankings or look spammy?

            Any suggestions or recommended plugins?

            Thanks

            Jason

            A_Q pivotpointsecurity 2 Replies Last reply Reply Quote 0
            • A_Q
              A_Q @JasonBrown65 last edited by

              Hi Jason,

              Although 302's are bad internally they shouldn't effect your rankings if you are 302ing externally.

              I'm sorry I can't recommend any plugins, as I haven't used any.

              1 Reply Last reply Reply Quote 0
              • pivotpointsecurity
                pivotpointsecurity @JasonBrown65 last edited by

                WordPress SEO by Yoast has a redirect function

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Where are redirect.viglink's coming from??
                  Expansyon
                  Expansyon
                  0
                  5
                  134

                • My affiliate links are being crawled by Google. Is this a bad thing? Also, should I add rel: nofollow to affiliate links?
                  AswadBaghlol
                  AswadBaghlol
                  0
                  2
                  124

                • Sneaky redirect happening on my wordpress site.
                  Todd_McDonald
                  Todd_McDonald
                  0
                  7
                  898

                • Issues with centrally hosting your own affiliate links?
                  FedeEinhorn
                  FedeEinhorn
                  0
                  2
                  143

                • Subdomains and duplicate content issue
                  McTaggart
                  McTaggart
                  0
                  4
                  1.1k

                • Redirect to Affiliate script via htacces - Is that risky?
                  AgentsofValue
                  AgentsofValue
                  0
                  3
                  419

                • Redirects
                  Dr-Pete
                  Dr-Pete
                  0
                  6
                  289

                • I need some feedback on the value of affiliate aggregators like Link Share
                  RobertFisher
                  RobertFisher
                  0
                  6
                  2.2k

                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