Update CanonURL.php - Add redirect check