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. Find all affiliate links in a custom CMS

    Find all affiliate links in a custom CMS

    Affiliate Marketing
    8 6 232
    • 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.
    • VinceWicks
      VinceWicks last edited by

      I have a custom CMS. I offer a few affiliate products through my site. Now I need to update all my aff. links and I'm not sure how I can find all the pages (posts) on my site that have affiliate links. What's the best way to do that?

      1 Reply Last reply Reply Quote 0
      • Andy.Drinkwater
        Andy.Drinkwater last edited by

        Probably the best way to track down all the pages, would be to use Screaming Frog Spider. Put in the URL and leave it to go.

        The free version crawls up to 500 pages with the paid version being unlimited.

        -Andy

        1 Reply Last reply Reply Quote 2
        • iSTORM-New-Media
          iSTORM-New-Media last edited by

          I would agree with Andy. Screaming Frog SEO Spider is a good tool for this. Just check all the "In Links" from the external urls you need to find on your site.

          1 Reply Last reply Reply Quote 1
          • VinceWicks
            VinceWicks last edited by

            Thanks guys, that makes sense. I'm doing what you suggested now. Once I find all my pages with affiliate links, is it possible to use .htaccess so that it requites those links automatically? Basically, it should go to a specific page, find the link I define, and change it to a new one. Is that even possible with .htaccess?

            JaneCopland Tom-Anthony 2 Replies Last reply Reply Quote 0
            • iSTORM-New-Media
              iSTORM-New-Media last edited by

              Afraid I can't help you with that one. Sorry!

              1 Reply Last reply Reply Quote 0
              • JaneCopland
                JaneCopland @VinceWicks last edited by

                Hi Vince,

                .htaccess can't change the HTML of the webpage, but I am not sure if it can rewrite outbound clicks. I'll reach out to other other contributors to see if anyone has a shortcut way of updating these links. I am seeing it mentioned online that you can do this, but I would like some verification from the team.

                Cheers,

                Jane

                1 Reply Last reply Reply Quote 0
                • Tom-Anthony
                  Tom-Anthony @VinceWicks last edited by

                  Hey,

                  As Jane mentioned - .htaccess can't change the HTML content of your pages, so you can't replace all the links that would be seen by a user or a browser.

                  If the links are via a redirection page on your site then you can use .htaccess to redirect those requests elsewhere, so when a user clicks a link it takes them somewhere else instead, but only if those pages are on your site.

                  Make sense?

                  Good luck!

                  -Tom

                  1 Reply Last reply Reply Quote 1
                  • MichaelC-15022
                    MichaelC-15022 last edited by

                    .htaccess processes requests received by your webserver.   It doesn't process HTML sent to the client, so it can't affect those affiliate links.

                    1 Reply Last reply Reply Quote 0
                    • 1 / 1
                    • First post
                      Last post
                    • 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

                    • How do you find Affiliate Links on your site that have not been nofollowed?
                      Chris.Menke
                      Chris.Menke
                      0
                      4
                      225

                    • What impact do affiliate links have on SEO
                      TomRayner
                      TomRayner
                      0
                      2
                      1.8k

                    • Affiliate program links
                      juris_l
                      juris_l
                      0
                      3
                      1.4k

                    • Tweeting affiliate links...?
                      Ant71
                      Ant71
                      0
                      2
                      177

                    • Affiliate links and Panda
                      Gamer07
                      Gamer07
                      0
                      7
                      1.5k

                    • Does an affiliate link bring the same SEO juice as a standard link?
                      maciek-
                      maciek-
                      0
                      4
                      987

                    • Link juice from my affiliates to my site
                      philraymond
                      philraymond
                      0
                      3
                      998

                    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