I dont really know but there already is a file in wordpress called canonical.php. It is in the wp includes folder.