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. Technical SEO Issues
    4. Can you use Screaming Frog to find all instances of relative or absolute linking?

    Can you use Screaming Frog to find all instances of relative or absolute linking?

    Technical SEO Issues
    5 4 2.1k
    • 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.
    • Merkle-Impaqt
      Merkle-Impaqt last edited by

      My client wants to pull every instance of an absolute URL on their site so that they can update them for an upcoming migration to HTTPS (the majority of the site uses relative linking). Is there a way to use the extraction tool in Screaming Frog to crawl one page at a time and extract every occurrence of _href="http://" _?

      I have gone back and forth between using an x-path extractor as well as a regex and have had no luck with either.

      Ex. X-path: //*[starts-with(@href, “http://”)][1]

      Ex. Regex: href=\”//

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

        If you have access to all the website's files, you could try finding all instances in the directory using something like Notepad++. Could even use find and replace.

        This is how I tend to locate those one-liners among hundreds of files.

        Good luck!

        CleverPhD 1 Reply Last reply Reply Quote 1
        • BeanstalkIM
          BeanstalkIM last edited by

          Depending on how you've coded everything you could try to setup a Custom Search under Configuration.  This will scan the HTML of the page so if the coding was consistent you could put something like href="http://www.yourdomain.com" as the string it's looking for and in the Custom tab on the resulting pages it'll show you all the ones that match the string.

          That's the only way I can think of to get Screaming Frog to pull it but looking forward to anyone else's thoughts. 🙂

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

            Regex: href=("|'|)http:(?:/{1,3}|[a-z0-9%])|[a-z0-9.-]+.

            This allows for your link to have the " or ' or nothing between the = and the http   If you have any other TLDs you can just keep expanding on the |

            I modified this from a posting in github https://gist.github.com/gruber/8891611

            You can play with tools like http://regexpal.com/ to test your regexp against example text

            I assumed you would want the full URL and that was the issue you were running into.

            As another solution why not just fix the https in the main navigation etc, then once you get the staging/testing site setup, run ScreamingFrog on that site and find all the 301 redirects or 404s and then use that report to find all the URLs to fix.

            I would also ping ScreamingFrog - this is not the first time they have been asked this question.  They may have a better regexp and/or solution vs what I have suggested.

            1 Reply Last reply Reply Quote 3
            • CleverPhD
              CleverPhD @Ria_ last edited by

              This only works if you have downloaded all the HTML files to your local computer.  That said, it works quite well!  I am betting this is a database driven site and so would not work in the same way.

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • Internal Links - Absolute Better Then Relative for SEO
                ruislip18
                ruislip18
                0
                3
                66

              • I can't crawl the archive of this website with Screaming Frog
                DirkC
                DirkC
                0
                12
                239

              • Canonical issues using Screaming Frog and other tools?
                screamingfrog
                screamingfrog
                0
                4
                1.8k

              • We are fixing broken links - can anyone tell me how to find and correct these errors
                ApWeb
                ApWeb
                0
                7
                344

              • 404 error - but I can't find any broken links on the referrer pages
                IainReloadMedia
                IainReloadMedia
                0
                12
                2.0k

              • I have 404 errors but can't find where these links are?
                JackMurphy
                JackMurphy
                0
                2
                280

              • Cn I use SEOMOZ to find "Bad Links"
                trophycentraltrophiesandawards
                trophycentraltrophiesandawards
                0
                3
                507

              • If two links from one page link to another, how can I get the second link's anchor text to count?
                RyanKent
                RyanKent
                0
                2
                720

              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