Site Owners Forums - Webmaster Forums

Site Owners Forums - Webmaster Forums (http://siteownersforums.com/index.php)
-   Search Engine Optimization (http://siteownersforums.com/forumdisplay.php?f=16)
-   -   How to add canonical links on ALL URL's? (http://siteownersforums.com/showthread.php?t=101345)

shantybeauty 10-02-2013 10:26 PM

How to add canonical links on ALL URL's?
 
What is the very best method to get canonical links on ALL URL's in D7?
.
I see nodes already have relative canonicals but I have a site with a great deal of non node URL's that also require canonicals.
.
I added code to my html. tpl. php to include a canonical on any type of web page however now I get double ups on node based pages.
.

TracyKate 10-02-2013 11:32 PM

Add a rel="canonical" link to the section of the non-canonical version of each HTML page.

It is very easy to tell search engines the canonical URL with meta data in the HEAD of your documents. Put the following HTML near the top of your HEAD element on every page that is not canonical:



All times are GMT -7. The time now is 03:11 PM.


Powered by vBulletin Copyright © 2020 vBulletin Solutions, Inc.