: 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
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?
More posts by @BetL925
2 Comments
Sorted by latest first Latest Oldest Best
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
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>
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.