Canonical tags are not working

#903743
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the canonical tags not appearing on your staging site. It sounds like you’ve already taken some steps to troubleshoot this by changing the canonical URL in Rank Math, but it hasn’t reflected in the code.

    Here are a few things you can check:

    1. Enable Advanced Mode: Ensure that you have enabled the Advanced Mode in Rank Math. You can do this by navigating to WordPress Dashboard → Rank Math SEO and enabling it if it’s not already activated. This will give you access to the Canonical URL field in the meta box.
      enable Advanced Mode

    2. Check Theme or Plugin Conflicts: Sometimes, themes or other plugins can interfere with how Rank Math outputs its meta tags. Try temporarily switching to a default WordPress theme (like Twenty Twenty-One) and disabling other plugins to see if the canonical tags appear.

    3. Inspect Page Source: After making changes, ensure you clear any caching plugins or server-side caches that might be preventing the updated canonical tags from showing. Then, inspect the page source (right-click on the page and select "View Page Source") to see if the canonical tag is present in the HTML.

    4. Custom Code: If you have any custom code in your theme’s functions.php file or elsewhere that modifies the output of meta tags, it could be affecting the canonical tags as well.

    5. Check for Output Buffering: If your site uses output buffering, it might be preventing Rank Math from outputting its tags correctly. Ensure that there are no issues with how your server is configured.

    If after checking these points the issue persists, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.

    Thank you for bringing this concern to our attention!

    Hello,

    Thank you for contacting us. We apologize for any inconvenience this issue may have caused.

    This is happening because those URLs’ meta robots have been set to noindex so our plugin doesn’t show the canonical tag as it wouldn’t matter anyway.

    The function of the Canonical tag when the URL is not self-referencing is to communicate to search engines to consider indexing the referenced page instead as the page’s content is almost a duplicate of the referenced page.

    So when a page is set to noindex search engines would not bother looking for a canonical tag. If you want to pass on SEO juice to the other page you should create a 301 redirect to it.

    We hope this helps. Please let us know if you have further questions or concerns.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

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

The ticket ‘Canonical tags are not working’ is closed to new replies.