• Resolved agab3

    (@agab3)


    Hi. After the site broke, I updated it from a testing version and forgot that version had the settings in WordPress “ask the search engines to not index the site”. I’ve changed the settings few hours ago today, but I still have warnings coming up in google console that some pages (including main one) still are blocked. I’ve done some digging and found that archives and tags in YOAST SEO were set for not indexing. I changed everything in YOAST SEO to index, but the warnings are still there.

    Searching in files for “noindex” I’ve found many examples (64 machings), like this:

    */wp-content/plugins/wordpress-seo/admin/class-import-external.php:
    77
    78 /**
    79: * @todo [JRF => whomever] verify how headspace sets these metas ( ‘noindex’, ‘nofollow’, ‘noarchive’, ‘noodp’, ‘noydir’ )
    80 * and if the values saved are concurrent with the ones we use (i.e. 0/1/2)
    81 */
    82: WPSEO_Meta::replace_meta( ‘_headspace_noindex’, WPSEO_Meta::$meta_prefix . ‘meta-robots-noindex’, $this->replace );
    83 WPSEO_Meta::replace_meta( ‘_headspace_nofollow’, WPSEO_Meta::$meta_prefix . ‘meta-robots-nofollow’, $this->replace );

    wp-content/plugins/wordpress-seo/admin/class-import-wpseo.php:
    69
    70 // Saving the new meta values for Yoast SEO.
    71: WPSEO_Meta::set_value( $robot_value[‘index’], ‘meta-robots-noindex’, $post_id );
    72 WPSEO_Meta::set_value( $robot_value[‘follow’], ‘meta-robots-nofollow’, $post_id );
    73
    ..
    128 if ( $wpseo_robots !== false ) {
    129 // The value 1, 2 and 6 are the index values in wpSEO.
    130: $new_robot_value = ( in_array( (int) $wpseo_robots, array( 1, 2, 6 ), true ) ) ? ‘index’ : ‘noindex’;
    131
    132: $tax_meta[ $taxonomy ][ $term_id ][‘wpseo_noindex’] = $new_robot_value;
    133 }
    134 }

    177 ‘follow’ => 1,
    178 ),
    179: // In wpSEO: noindex.
    180 3 => array(
    181 ‘index’ => 1,
    182 ‘follow’ => 0,
    183 ),
    184: // In wpSEO: noindex, follow.
    185 4 => array(
    186 ‘index’ => 1,
    187 ‘follow’ => 0,
    188 ),
    189: // In wpSEO: noindex, nofollow.
    190 5 => array(
    191 ‘index’ => 1,

    What can I do to repair it?

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter agab3

    (@agab3)

    Update: after changing the settings of Yoast SEO and reseting Autoptimize, I have 3 warnings in Google Console “Indexing errors”- URL blocked via robots.txt files – in */category-sitemap.xml, */page-sitemap.xml, *post-sitemap.xml

    Is there a way to change that?

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    We looked at your robots.txt and we see the sitemap path is a wrong one. Please, edit the sitemap path to sitemap_index.xml first.

    Once you edit the sitemap path correctly, you can resubmit the robots.txt to your Google search console and wait for a while until Google to recrawl your site and which should resolve the error.

    Jerlyn

    (@jerparx)

    Closing due to inactivity.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Noindex problem!’ is closed to new replies.