The Route 6 website lesson, what started as a new update about Shoemaker’s Travel & Service Center Lincoln, Nebraska, on Route 6 Tourist Association website @ https://www.route6tour.com/ The content contains a link to a PDF file, and that prompted my quest to add a canonical link to that PDF file so it would be indexed by Google’s bot. The chore was researched and I chose the information in this URL Canonical URLs: A Beginner’s Guide to Canonical Tags it was my problem source. I read the part about getting that done with an edit of the .htaccess file The content was written as this:
Use rel=“canonical” in HTTP Headers
A rel=“canonical” HTTP header allows you to specify a canonical URL for non-HTML documents.
For example, if you have a .docx
and .pdf
version of the same document online, you can use this method to indicate your preferred version.
However, you need to be able to change your server’s configuration.
In the .htaccess
file, specify a canonical URL by adding code that looks like this:
Link: <https://www.example.com/downloads/filename.pdf>; rel="canonical"
That caused problems, and the good support team righted that wrong that I created. Then I went into 2 different tools and got 2 different results. I first checked the Google Search Console, and it wasn’t indexing PDF files (someday I’ll figure out why) since I checked on the BING search and ALL the pdf files (that are in the processed sitemap.xml file are listed)
Thanks to the support at CentralInfo.net
-
List Canonical URLs Only in Your Sitemap (best practice for all site owners)
You must be logged in to post a comment.