Cannot delete canonical url

#183982
  • Resolved Helmuth Weiss
    Rank Math free

    how can I delete a canonical url?
    In which table of the database are the canonical URLs stored?

    I have Woocommerce with WPML in 4 languages.
    in one language i can neither delete nor change the category url. I tried to redirect the canonical URL to a redirection URL but the canonical URL cannot be changed.
    I always get a 404.

    the format of the canonical url is as follows:
    hhtps://www.ollala.com/https://es.ollala.com/categoria-producto/…..

Viewing 6 replies - 1 through 6 (of 6 total)
  • Cris
    Rank Math business

    Hello,

    Thank you for bringing this to our attention and apologies for the inconvenience caused.

    If I may ask, why do you wish to remove the canonical tag from your page?

    You can however use the following code on your theme’s functions.php file to remove Rank Math meta info apart from the title:

    add_action( ‘wp_head’, function(){
    if( is_singular(‘enter_product_post_type_name_here’)) {
    remove_all_actions( ‘rank_math/head’ );
    add_action( ‘wp_head’, ‘_wp_render_title_tag’, 2 );
    }
    }, 1 );

    Please let me know if there is anything you need further assistance with.

    Cheers,

    Many thanks for the answer.

    But that is not the solution!

    The URL created by Rank-Math results in a 404 error.
    If I can’t change or delete the URL, how should I fix it?

    The URL created by Rank-Math results in a 404 error.
    If I can’t change or delete the URL, how should I fix it?
    The Rank-Math URL works in 3 languages, but in one language it always leads to a 404 error.
    And as already said the error cannot be fixed.
    How can you delete a canonical url ???

    Thanks

    https://es.ollala.com/categoria-producto/dildos-es it doesn’t work

    https://www.ollala.com/product-category/dildos work

    https://it.ollala.com/categoria-prodotto/dildo work

    https://fr.ollala.com/categorie-produit/godes work

    the url at http://www.ollala.com is structured differently than in the other languages, why ??

    In the source language English

    in http://www.ollala.com the URL is like this:……../product-category/dildos – starts with “product”

    in es.ollala.com the url is like this:…………/categoria-producto/dildos-es

    in it.ollala.com the url is like this:…………./categoria-prodotto/dildo

    in fr.ollala.com the url is like this:…………./categorie-produit/godes

    Why ?

    Hello,

    Thank you for the update, and sorry for the delay.

    I’ve checked the link you have provided but I’m unable to find the canonical URL you are referring to.

    However, the Product category base default structure is product-category in the English language.

    If you wanted to change it, you can do so by heading to your WordPress Dashboard > Settings > Permalinks
    Product Category

    I hope that helps. Thank you, and please don’t hesitate to contact us anytime if you need further assistance with anything else.

    Thanks

    Hello,

    We are glad that we have addressed your concerns.

    If you have any other questions, please don’t hesitate to contact us anytime by creating a new ticket to assist you further with anything else.

    Thank you.

Viewing 6 replies - 1 through 6 (of 6 total)

The ticket ‘Cannot delete canonical url’ is closed to new replies.