Mobile app version of vmapp.org
Login or Join
BetL925

: Google Search Console - Submitted URL not selected as canonical We have 3 product pages in which we have added some internal links (PDF links), the crawl report Google search console is showing

@BetL925

Posted in: #GoogleSearchConsole #SearchEngines #Seo

We have 3 product pages in which we have added some internal links (PDF links), the crawl report Google search console is showing an error called "Submitted URL not selected as canonical".

The PDF is product a instruction guide that will be common in almost all items in website. How to overcome that issue in Google search console?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

2 Comments

Sorted by latest first Latest Oldest Best

 

@Bryan171

If the PDF content is too similar to your html content you can prevent google from crawling these pages by adding rel="nofollow" to your links pointing to the PDF files.

I think you can also prevent Google from crawling these pages by adding PDF as a parameter here www.google.com/webmasters/tools/crawl-url-parameters?hl=en&siteUrl=
You can also change the http header for PDF files to canonical. Here is one method:



You can also write the header canonical in PHP and call the PDF file:



You can learn more about it here:
moz.com/blog/how-to-advanced-relcanonical-http-headers

10% popularity Vote Up Vote Down


 

@Eichhorn148

The main requirement for clean and automatic implementation is, that your pdf files have same file names as their according html pages, i.e.:


html page: /example-guide-1.html
according pdf file: /example-guide-1.pdf


After you got this structure into your file names you add something like following to your htaccess to add to all pdf files the canonical link to according html file:

RewriteRule ([^/]+).pdf$ - [E=FILENAME:]
<FilesMatch ".pdf$">
Header add Link "< example.com/%{FILENAME}e.html >;rel="canonical""
</FilesMatch>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme