<?php  
$actual_link = "https://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
         
        if($actual_link == 'https://link.com/' || $actual_link == 'https://link.com/index'){ ?>
            <title>Home</title>
            <meta name="description" content="Home">
            <link rel="canonical" href="https://link.com/index">
        <?php }

        elseif($actual_link == 'https://link.com/contact'){  ?>
            <title>Contatc</title>
            <meta name="description" content="Contatc">            
            <link rel="canonical" href="https://link.com/contact" />
        <?php }

        elseif($actual_link == 'https://link.com/portfolio'){  ?>
            <title>Privay policy</title>
            <meta name="description" content="Privay policy">
            <meta name="robots" content="noindex,nofollow">
        <?php }

?>