Announcement

Collapse
No announcement yet.

Remove / Edit Canonical Link Tag???

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Remove / Edit Canonical Link Tag???

    Is there a way to remove the canonical link tag?

    If not, is there a way to remove the /product/ and the /category/ place holders from it?

    All my URLs are indexed in google like this:

    mystore.com/product_code.html

    mystore.com/category_code.html


    But the built in canonical tag is now telling google to index my pages like this instead:

    mystore.com/product/product_code.html

    mystore.com/category/category_code.html

    I have been using the toolkit short links and it has been working wonderfully all these years (Thank you, Bill).

    So I need to remove (or edit) just the canonical link.

    Thanks in advance.

    Using suivant theme.
    Mark Romero
    ~~~~~~~~

    #2
    Re: Remove / Edit Canonical Link Tag???

    It's in the head tag content of the Suviant theme. It's not really "built in" they included code that which appears it's supposed to use the settings from seo page which you can actually adjust to match your link style (disclaimer if you go that route it will probably mess with you ht access file)

    <mvt:if expr="l.settings:page:code EQ 'SFNT' OR l.settings:page:code EQ 'BASK' OR g.secure">
    <link rel="canonical" href="http://&mvta:global:domain:name;/" />
    <mvt:elseif expr="l.settings:page:code EQ 'CTGY'">
    <link rel="canonical" href="http://&mvta:global:domain:name;/&mvt:seo_settings:cat_lit;&mvt:seo_settings:url_de lim;&mvta:category:code;.&mvt:seo_settings:suffix; " />
    <mvt:elseif expr="l.settings:page:code EQ 'PROD' OR l.settings:page:code EQ 'PATR'">
    <mvt:assign name="g.socialURL" value="'http://' $ g.domain:name $ '/' $ l.settings:seo_settings:prod_lit $ l.settings:seo_settings:url_delim $ l.settings:product:code $ '.' $ l.settings:seo_settings:suffix" />
    <mvt:assign name="g.encodedProdName" value="encodeentities(l.settings:product:name)" />
    <mvt:assign name="g.socialText" value="'Check out the deal on ' $ l.settings:product:name $ ' at ' $ g.store:name" />
    <mvt:assign name="g.socialImage" value="'http://' $ g.domain:name $ g.domain:image_root $ l.settings:product:customfield_values:productimage customfields:main" />
    <link rel="canonical" href="&mvt:global:socialURL;" />
    <meta name="twitter:card" content="summary_large_image">
    <meta name="twitter:site" content="@TWITTER_ACCOUNT">
    <meta name="twitter:creator" content="@TWITTER_ACCOUNT">
    <meta name="twitter:title" content="&mvt:global:encodedProdName;">
    <meta name="twitter:description" content="&mvte:global:socialText;">
    <meta name="twitter:image:src" content="&mvt:global:socialImage;">
    <meta property="og:title" content="&mvt:global:encodedProdName;" />
    <meta property="og:type" content="product" />
    <meta property="og:image" content="&mvt:global:socialImage;" />
    <meta property="og:url" content="&mvt:global:socialURL;" />
    <meta property="og:site_name" content="&mvte:global:store:name;" />
    <meta property="og:description" content="&mvte:global:socialText;" />
    <mvt:else>
    <link rel="canonical" href="http://&mvta:global:domain:name;/&mvta:page:code;.&mvt:seo_settings:suffix;" />
    </mvt:if>
    Mark Hood
    Vermont Gear

    Comment


      #3
      Re: Remove / Edit Canonical Link Tag???

      Thank you, Mark, and thanks for the warning about it jenking up the .htaccess file.

      I made a backup of the .htaccess file and copied and pasted the code from tool kit back into the new (Miva Generated) .htaccess file.

      Got it all taken care of.

      Thanks again.
      Mark Romero
      ~~~~~~~~

      Comment


        #4
        Re: Remove / Edit Canonical Link Tag???

        Originally posted by Siamese-Dream.Com View Post
        Thank you, Mark, and thanks for the warning about it jenking up the .htaccess file.

        I made a backup of the .htaccess file and copied and pasted the code from tool kit back into the new (Miva Generated) .htaccess file.

        Got it all taken care of.

        Thanks again.
        How do you Miva Generate an .htaccess file?
        Thank you,
        John

        Comment


          #5
          Re: Remove / Edit Canonical Link Tag???

          When you enable search friendly links in Miva, it will create an .htaccess file if you don't have one or add the block of code it needs, based on your Search Friendly Link settings you configure under SEO settings.
          Brennan Heyde
          VP Product
          Miva, Inc.
          [email protected]
          https://www.miva.com

          Comment


            #6
            Re: Remove / Edit Canonical Link Tag???

            Originally posted by Brennan View Post
            When you enable search friendly links in Miva, it will create an .htaccess file if you don't have one or add the block of code it needs, based on your Search Friendly Link settings you configure under SEO settings.
            So get the current code should I?

            1. turn off short links
            2. upload a blank .htaccess
            3. turn short links back on
            Thank you,
            John

            Comment

            Working...
            X