Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    Feb 2017
    Posts
    33

    Where to put canonical tag?

    Hi folks,

    One of my clients website is running index.php that is duplicate of home page as per Google. I need to know Where should I put canonical tag in home page saying index.php or index.php page saying that this is duplicate of home page. Please guide me in the right direction.

  2. #2
    Senior Member deepakrajput's Avatar
    Join Date
    Feb 2012
    Location
    CA
    Posts
    1,223
    We have to put canonical tag code below <head> tag of each page.

  3. #3
    Member
    Join Date
    Jun 2015
    Location
    Thailand
    Posts
    89
    Anywhere inside the head tag <head></head> commonly, put after the meta tags.

  4. #4
    Registered User
    Join Date
    Mar 2016
    Posts
    294
    Quote Originally Posted by ColleenWilliams View Post
    Hi folks,

    One of my clients website is running index.php that is duplicate of home page as per Google. I need to know Where should I put canonical tag in home page saying index.php or index.php page saying that this is duplicate of home page. Please guide me in the right direction.
    You have two options : -
    1. Suppose your site is www.example.com and you have another page that is www.example.com/index.php
    In this case you can redirect www.example.com/index.php to www.example.com. Then you have no need to use canonical tag.

    But if you want to keep both page on your live website then you can add canonical tag in your webpages including www.example.com and www.example.com/index.php.

  5. #5
    Senior Member
    Join Date
    Jul 2017
    Posts
    227
    The Canonical Tag is part of the HTML header on a webpage. This is the same place where we put other fun SEO stuff like the title tag, meta description tag and the robots tag. The code, as in my example above, would look like this.

    <link rel="canonical" href="http://example.com/quality-wrenches.htm"/>

    It is added inside the head tag

  6. #6
    Registered User
    Join Date
    Jul 2017
    Location
    India
    Posts
    77
    Add a <link> element with the attribute rel="canonical" to the <head> section of the web page.
    For exaple: <link rel="canonical" href="https://blog.example.com/dresses/green-dresses-are-awesome" />

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting


Premium Partners:


Visit forums.thewebhostbiz.com: to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.