• Hey,
    For my desktop site, I am not using a canonical tag. I want to use my custom canonical tags for AMP pages. Could you please tell me in which file I can add my code.
    <?php $indexcanonical = “https://$_SERVER[HTTP_HOST]&#8221;.parse_url($_SERVER[‘REQUEST_URI’], PHP_URL_PATH);?>
    <link rel=”canonical” href=”<?php echo $indexcanonical ?>”>

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to add custom canonical tag’ is closed to new replies.