no Index on homepage only

#20166
  • Resolved Ahmad Mohsein
    Rank Math free

    hi how can i fix this , my homepage is not shown in google search for last two weeks.

    • This topic was modified 4 years, 11 months ago by Ahmad Mohsein. Reason: temporary login , please help
Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    Your homepage robots meta has been set to noindex, please edit this page and change the robots meta via the Rank Math metabox as shown below and publish the page.
    Screen Grab

    Looking forward to helping you. Thank you.

    ​​​​​​​

    hi , when i mark to index . nothing change , the next day it will change back to noindex

    Hello,

    Thanks for getting back to us.

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below 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 use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Hello,

    Thank you for contacting Rank Math today.

    It looks like file editing has been disabled on your site and thus I was unable to check for custom functions that could be causing this.
    Could you please add the following code to your theme’s functions.php file:

    /**
     * Allows filtering of the robots meta data.
     *
     * @param array $robots The meta robots directives.
     */
    add_filter( 'rank_math/frontend/robots', function( $robots ) {
            if(is_front_page()){
                $robots['index'] = 'index';
                $robots['follow'] = 'follow';
                return $robots;
            }
    	return $robots;
    });

    Looking forward to helping you. Thank you.

    ​​​​​​

    hi i have update the files in child functions.php.

    Hello,

    Thank you for contacting Rank Math today.

    This seems to have fixed the problem, can you confirm?
    Screenshot

    Looking forward to helping you. 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 7 replies - 1 through 7 (of 7 total)

The ticket ‘no Index on homepage only’ is closed to new replies.