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. Intermediate & Advanced SEO
    4. Canonical to PDF

    Canonical to PDF

    Intermediate & Advanced SEO
    6 4 2.7k
    • 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.
    • Midleton
      Midleton last edited by

      This post is deleted!
      1 Reply Last reply Reply Quote 0
      • EGOL
        EGOL last edited by

        See Tip #2 from Tom Anthony...

        http://moz.com/blog/htaccess-file-snippets-for-seos

        Midleton 1 Reply Last reply Reply Quote 2
        • SamuelScott
          SamuelScott last edited by

          This Moz post gives advanced directions on HTTP headers (for using rel=canonical in non-HTML files) and cited this and this information from Google.

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

            Hi there,

            Do you know if the PDF files are currently being indexed/ranked in the search engines? Do the PDFs provide any additional content than the HTML version? I have never been a big fan of PDFs in the search results (especially as a user!), so I try to limit this from happening with my own sites by not making the PDFs accessible to the search engines in the first place. Obviously there are reasons why you would want PDFs available to view for your users but if the content is the exact same as the HTML version, then there really is no need for them to be indexed by search engines.

            One way to address this issue is to move the PDFs to a different directory and restricting search engines from accessing that directory. Then you can simply 301 redirect the old PDF urls to the HTML version urls so that the search engines know to only index the HTML version without the need for the canonical tags.

            For more information on how to resolve this issue, I wrote a couple of blog posts that go into more detail about why I don't like PDFs and how to 301 redirect them -

            http://streamlinemetrics.com/blog/seo-for-pdfs-optimizing-pdf-files-for-search-engines.php

            http://streamlinemetrics.com/blog/how-to-redirect-pdf-files-with-php-asp-or-htaccess-for-seo-seo-for-pdfs-part-2.php

            1 Reply Last reply Reply Quote 0
            • Midleton
              Midleton @EGOL last edited by

              Hi Egol. thanks for your reply 😉

              I tried to sort this out but I couldn't. It still doesn’t work. In the post you recommended, advices are given on how to install canonical on PDFs in Lynunx (.htaccess). Do you know how to do it in Windows (web.config)? Cheers

              EGOL 1 Reply Last reply Reply Quote 1
              • EGOL
                EGOL @Midleton last edited by

                **Do you know how to do it in Windows (web.config)? **

                Sorry.  I only know about .htaccess.

                When I purchase hosting I always look for those that can handle .htaccess - because it is so frequently used on my sites.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  Last post
                • Pages canonicaled to another appearing before the canonical on google searches
                  EGOL
                  EGOL
                  0
                  2
                  52

                • Canonical or No-index
                  CommT
                  CommT
                  0
                  7
                  115

                • Canonicals question ref canonicals pointing to redundant urls
                  AndyMacLean
                  AndyMacLean
                  0
                  4
                  99

                • What is better? No canonical or two canonicals to different pages?
                  WilliamKammer
                  WilliamKammer
                  0
                  2
                  102

                • Rel=canonical
                  arcade88
                  arcade88
                  0
                  6
                  206

                • What is the difference between link rel="canonical" and meta name="canonical"?
                  Ideas-Money-Art
                  Ideas-Money-Art
                  0
                  3
                  1.3k

                • To "Rel canon" or not to "Rel canon" that is the question
                  Dr-Pete
                  Dr-Pete
                  0
                  10
                  728

                • Is having a canonical tag for the link that IS the canonical a negative thing?
                  DanDeceuster
                  DanDeceuster
                  0
                  2
                  813

                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