joined:Sept 18, 2002
I have 2 questions:
1. From reading other forum posts, it's my understanding that the correct canonical URL format depends on your doctype. Before I change 10,000+ pages, can someone confirm that this format is correct for my doctype below?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<link rel="canonical" href="http://www.blah.com/">
<link rel="canonical" href="http://www.blah.com/dir/">
<link rel="canonical" href="http://www.blah.com/page.html">
Note: My .htaccess file already redirects non-www urls to www urls and adds the trailing slash for directories. (The examples without slashes or extra slashes after the end quotes in some of the forum posts were confusing me.)
2. My second question is in regard to PDFs. If I have a pdf that is a printable version of my html page, do I put the following code in the header of my html page? How does that help if someone chooses to repost your pdf elsewhere?
Link: <http://www.blah.com/page.pdf>; rel="canonical"