x-robots-tag

#879742
  • Resolved S blondýnou v kuchyni
    Rank Math free

    dobrý den, snažím se už týden opravit nějakou hlavičku, jelikož mi soubor sitemap stále píše, že má hlavičku x-robots-tag noindex. Mám vše na webu index, tam chyba není. V .htaccess jsem přidala všechna pravidla ohledna cache i ohledně xml index a stále mám stejný problém. V pliginu wp fastes cache jsem dala taky vyjímmku a nakonec jsem i celý plugin vypla.
    stále mám stejný problém a google nechce sitemap nahrát.
    Dokážete mi nějak poradit?

    Děkuji Lucie

Viewing 15 replies - 1 through 15 (of 23 total)
  • Hello, we apologize for the issue you are facing with the X-Robots-Tag and your sitemap. It sounds like you’ve already taken several steps to troubleshoot the problem. Here are a few additional suggestions that might help:

    1. Check for Other Plugins: Sometimes, other plugins can interfere with the X-Robots-Tag settings. Try deactivating all plugins except for Rank Math and see if the issue persists.

    2. Inspect the HTTP Headers: Use a tool like cURL or an online HTTP header checker to inspect the headers returned by your sitemap URL. This will help you confirm if the X-Robots-Tag is indeed set to noindex and identify where it might be coming from.

    3. Server Configuration: If you have access to your server configuration files (like httpd.conf for Apache or nginx.conf for Nginx), check if there are any directives that might be setting the X-Robots-Tag to noindex.

    4. Custom Canonicals: If you have set custom canonical URLs for your posts, ensure that they are not affecting the sitemap generation. Rank Math includes a self-referencing canonical by default, and custom canonicals can lead to discrepancies in the sitemap.

    5. Contact Hosting Provider: If none of the above solutions work, it may be worth reaching out to your hosting provider to see if they have any server-level settings that could be affecting the X-Robots-Tag.

    If you continue to experience issues, 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 raising this concern!

    Vypla jsem všechny pluginy kromě šablony a rank math – nepomohlo
    Kontrola záhlaví píše noindex
    .htaccess jsem zkontrolovala a přidala direktivy index, i no cache – nepomohlo
    vlastní kanonické adresy nemám
    Nemužete prosím pprovést kontrolu nějak z vaší strany? Já už nevím, kde mám hledat

    Hello,

    Thank you so much for getting in touch.

    That URL of the sitemap of the website should return a noindex status code because you wouldn’t want to index the sitemaps from your website, but rather only the pages that are inside the sitemap.

    That directive on the sitemap prevents it from appearing on SERPs but it doesn’t prevent Google from crawling the pages on it and indexing them.

    If you test any sitemap, even from big websites you’ll see that most use this directive to be sure it’s not getting included on SERPs.

    To submit the sitemap to the correct place on GSC you should follow the steps in this tutorial: https://rankmath.com/kb/submit-sitemap-to-google/

    Don’t hesitate to get in touch if you have any other questions.

    Problém je, že je problém 😀
    Podle google nelze soubor načíst, tedy google vůbec kvuli noindex nedokáže načíst tu mapu
    Potřebuji to vyřešit.
    Děkuji

    Hello,

    Sitemaps require noindex to prevent Google from indexing it on the SERP as you don’t want to appear on the search results.

    You must have submitted the sitemap path to Google’s URL inspection tool. If you did, then it is expected to see that error. Please refrain from submitting the URL to the URL inspection tool, instead, submit your sitemap to the Sitemap section of GSC.

    If you are still seeing the error you want to remove, please share a full screenshot of it here so we can check it further. You may share your screenshots using this tool: https://imgur.com/upload

    Looking forward to helping you.

    Dobrý den, mám více webů a vím, jak nahrár sitemaps na GSC, u všech webu mi funguje.
    Zde obrázek
    https://imgur.com/a/8JER4sB

    Hello,

    You should give Google some to for the “Last read” column to be updated after submitting your sitemaps.

    Meanwhile, please follow these steps to flush your sitemap cache:

    1. Flush the Sitemap cache by following this video screencast:
    https://i.rankmath.com/pipRDp

    2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
    https://rankmath.com/kb/exclude-sitemaps-from-caching/

    3. Disable the transient cache for the sitemap by applying this filter. This will make sure that your XML sitemap always reflects the latest changes on your site:

    /** 
     * Filter if XML sitemap transient cache is enabled.
     *
     * @param boolean $unsigned Enable cache or not, defaults to true
     */
    add_filter( 'rank_math/sitemap/enable_caching', '__return_false');

    If you’re not sure how to add this code, you can follow this guide:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Looking forward to helping you.

    Ahoj, odesílám sitemaP DOKOLA, Google pořád nic 😀
    Vyzkouším vymazat tu mezipamět. Jinak v .htaccess mám ten kod kvuli cache již přidaný dlouho.

    Vyzkoušela jsem vše. Po přidaní hook do rank-math.php mi to vyhodilo tyto chyby webu

    nsient cache is enabled. * * @param boolean $unsigned Enable cache or not, defaults to true */ add_filter( ‘rank_math/sitemap/enable_caching’, ‘__return_false’);
    Warning: Cannot modify header information – headers already sent by (output started at /data/web/virtuals/298259/virtual/www/domains/kuszvance.fun/wp-content/themes/astra-child/rank-math.php:1) in /data/web/virtuals/298259/virtual/www/domains/kuszvance.fun/wp-admin/includes/misc.php on line 1438

    Warning: Cannot modify header information – headers already sent by (output started at /data/web/virtuals/298259/virtual/www/domains/kuszvance.fun/wp-content/themes/astra-child/rank-math.php:1) in /data/web/virtuals/298259/virtual/www/domains/kuszvance.fun/wp-includes/functions.php on line 7108

    Warning: Cannot modify header information – headers already sent by (output started at /data/web/virtuals/298259/virtual/www/domains/kuszvance.fun/wp-content/themes/astra-child/rank-math.php:1) in /data/web/virtuals/298259/virtual/www/domains/kuszvance.fun/wp-admin/admin-header.php on line 9

    Hello,

    To help you investigate this issue, we might need to take a closer look at your website and settings. Please follow these steps:

    • Edit the first post on this ticket and include your WordPress logins in the Sensitive Data section. This is a secure section that only our support staff can access.
      Sensitive Data Section
    • Make sure you take a complete backup of your website before sharing the information with us.
    • If you prefer, you can use this plugin to generate a temporary login URL to your website and share that with us instead: https://wordpress.org/plugins/temporary-login-without-password/
    • You can also use this plugin to monitor what changes our staff might make on your website (if any): https://wordpress.org/plugins/wp-security-audit-log/

    We appreciate your cooperation and patience. Thank you for choosing Rank Math.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    Please also share the FTP access to your site so we can easily revert the changes after applying the filter.

    Meanwhile, you already have a child theme, so you can add the filter in your child theme’s functions.php file instead of rank-math.php.

    Looking forward to helping you.

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Přídán přístup do ftp do citlivých dat

    Hello,

    We added the filter to your child theme’s functions.php file. It isn’t returning any errors or warnings.

    Please remove the sitemap from your GSC account and resubmit it. The issue should be resolved once Google recrawls the sitemap.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

Viewing 15 replies - 1 through 15 (of 23 total)

The ticket ‘x-robots-tag’ is closed to new replies.