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. On-Page / Site Optimization
    4. What's the Best Way to Hide Redirects from Search Engines?

    What's the Best Way to Hide Redirects from Search Engines?

    On-Page / Site Optimization
    8 5 867
    • 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.
    • JaredB
      JaredB last edited by

      Hey everybody,

      I like to use php redirects for affiliate links so they look better.  I keep them all in the same directory.  I read recently that these may hurt SEO.

      A couple quick questions:

      Is this the best way to redirect affiliate links?

      Should I simply block the directory in robots.txt?

      Any other suggestions from you SEO guyses and galz?

      Thanks!

      Jared

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

        Just a guess from me here, but I don't think hiding redirects from a search engine would be a good idea at all. I mean, we know they really don't like us trying to hide stuff from them whether it's keywords or anything else. Not sure how that would work out, or what the chances of anything bad happening from it would be, but I would assume that if Google thought people were doing it, it would soon be in their webmaster guidelines as "Don't". But again, complete guess, I don't know enough about it to say anything for sure.

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

          You should be using redirects as a means of masking your affiliation from the site visitor, not from search engines. I can't see anything wrong with using PHP redirects, but do them to prevent hoplink theft, as there's no actual SEO advantage since Google can see through redirects.

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

            Well, if you don't want Google to see the list, then blocking the page with robots.txt is your solution.

            But if it is a valuable list of resources it may be worth showing off that people use it.

            In either case I'm not sure you want to use a php redirect. You could use No-Follow if you actually don't want to vouch for that site. But, I guess that all depends on what the site is.

            I am a little confused by what you mean when you say "they looks better."

            stevenheron JaredB 2 Replies Last reply Reply Quote 0
            • stevenheron
              stevenheron @WilliamBay last edited by

              I think he means that by masking the link it makes hoplink theft more difficult, and also savy users would be less aware that the links are in fact affiliate links.

              SteveOllington 1 Reply Last reply Reply Quote 0
              • SteveOllington
                SteveOllington @stevenheron last edited by

                Yeah isn't there tools to put the link through for that?

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

                  Hey Jared

                  I am guessing you are using

                  header('Location: http://www.example.com/');

                  Which triggers a 302 temporary redirection which as we know passes nothing.

                  I have seen this on other bespoke sites and even on some older shopping cart scripts etc and never seen it hurt anything from an SEO perspective. That's not to say it doesn't, but I have never seen it when it is used in this way. It's for an external link as well so I would not worry about it too much.

                  This is one of those things, you want to preserve these links, I am guessing you want to hide them and this solution kind of meets your goals.

                  Really, if you had lots of links to pages you want  to pass page rank or anchors into, or you were being linked to in this way, then the 302 would be  a negative thing as no anchor or link juice is passed down the link. But, in this instance, I really can't see it doing any harm.

                  Happy to take a look at the page and provide some more targeted feedback if it helps.

                  Marcus

                  1 Reply Last reply Reply Quote 0
                  • JaredB
                    JaredB @WilliamBay last edited by

                    Hey William,

                    By "looks better", I have been taught that when people (especially marketers) hover over a link, they check out where it takes them by looking at the bottom left of the browser before clicking it.

                    The redirect makes the URL more friendly to click.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • What is the best way to deal with creating a separate brand with it's own website when the main site already ranks well for the target keywords?
                      EGOL
                      EGOL
                      0
                      2
                      40

                    • Short URL's vs Optimised URL's
                      MozAddict
                      MozAddict
                      0
                      3
                      68

                    • What is the best way to execute a geo redirect?
                      FedeEinhorn
                      FedeEinhorn
                      0
                      4
                      738

                    • Duplicate Content for Men's and Women's Version of Site
                      LeahHutcheon
                      LeahHutcheon
                      0
                      5
                      181

                    • Number ID's in URL's
                      simmo235
                      simmo235
                      0
                      3
                      174

                    • Wordpress pages URL's redirection.
                      evolvingSEO
                      evolvingSEO
                      0
                      2
                      168

                    • The best way to redirect to www
                      Cyrus-Shepard
                      Cyrus-Shepard
                      0
                      7
                      336

                    • What's the best way to name an image for SEO?
                      Keszi
                      Keszi
                      0
                      2
                      2.8k

                    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