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. Content & Blogging
    4. Index pdf files but redirecto to site

    Index pdf files but redirecto to site

    Content & Blogging
    5 2 1.0k
    • 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.
    • gmellak
      gmellak last edited by

      Hi,

      One of our clients has tons of PDFs (manuals, etc.) and frequently gets good rankings for the direct PDF link. While we're happy about the PDFs attracting users' attention, we'd like to redirect them to the site where the original PDF link is published and avoid that people open the pdf directly.

      In short, we'd like to index the PDFs, but show to users the pdf link within a site - how should we proceed to do that?

      Thanks,

      GM

      1 Reply Last reply Reply Quote 0
      • G-Force
        G-Force last edited by

        Hi Gert,

        Technically, this is not possible unless you use cloaking to display the PDF to the search engines and redirect the users to a different page.

        What you could do to avoid cloacking is to include a banner at the top of your PDF with something like "Click here to see all our related PDFs" that would link to your website, this way users might be interested in going to your website.

        Otherwise, you could detect the referer with htaccess and redirect the user to the user if he is coming from google, but this might be considered as cloaking. Here's an example :

        RewriteEngine On
        RewriteCond %{HTTP_REFERER} (.)google.(.)
        RewriteRule ^pdf/(.*).pdf /pdf-list [R=302]

        If you are running a apache server and you put this in your .htaccess file, the first line activate mod_rewrite, the second line check if the referer matches  anythinggoogle.anything and the third line redirect all .pdf files in the pdf folder to the /pdf-list page if the referer matches.

        Best regards,
        Guillaume Voyer.

        gmellak 1 Reply Last reply Reply Quote 0
        • gmellak
          gmellak @G-Force last edited by

          Thanks for your detailed reply, Guillaume,

          I guess the possible "cloaking troubles" with this strategy are probably too risky for our project. However, I like the "click here" idea, we'll check if we can automate that somehow to drag users reading the PDFs back to our site.

          G-Force gmellak 2 Replies Last reply Reply Quote 0
          • G-Force
            G-Force @gmellak last edited by

            Hi Gret,

            After further research, it might not be considered as cloacking that much as the Google First Click Free for Web Search system works the same way and check the HTTP referer.

            For more details, read the official Google Webmaster Central blog post about it here :
            http://googlewebmastercentral.blogspot.com/2008/10/first-click-free-for-web-search.html

            Best regards,
            Guillaume Voyer.

            1 Reply Last reply Reply Quote 1
            • gmellak
              gmellak @gmellak last edited by

              Thanks for the follow-up ... if it weren't for phrases like

              • The page displayed to all users who visit from Google must be identical to the content that is shown to Googlebot.

              I'd be quite comfortable with that ... in the meantime, however, I might try some pdf2html conversion tools to see if there is a viable way to present PDF-information on a HTML page and block the PDF link for robots.

              Regards,

              Gert

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              • First post
                Last post
              • New sister site VS site redesign and dangers of SEO dilution??
                JaneCopland
                JaneCopland
                0
                4
                697

              • Smaller Index
                Everett
                Everett
                0
                3
                141

              • Network of small sites or one large site
                vcasebourne
                vcasebourne
                0
                9
                142

              • In Index but not in Serps
                KMUK
                KMUK
                0
                3
                111

              • Which is better for seo purposes? site/blog or site/community?
                TheeDigital
                TheeDigital
                0
                4
                245

              • Indexing of PDF files
                EGOL
                EGOL
                1
                2
                1.0k

              • I have a page where you can download a PDF of the material - should I exclude the PDF from the search engines?
                MarieHaynes
                MarieHaynes
                1
                4
                1.0k

              • Please help me stop google indexing https pages on my wordpress site
                CPU
                CPU
                0
                8
                5.6k

              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