nonsense indexes like /?cat=-1 , /?zx=3f82

#552778
  • Resolved Anonymous
    Rank Math free

    after using the plugin, nonsense indexes started to happen. as I mentioned in the title. this is a problem that needs to be solved.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hello,

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    You may add the following filter to your site to set those pages noindex and Google should remove them slowly from SERPs after next few crawls.

    add_filter( 'rank_math/frontend/robots', function( $robots ) {
    	$url = home_url( $_SERVER['REQUEST_URI'] );
    	if( (strpos($url,"/?cat=") !== false) || (strpos($url,"/?zx=") !== false) )  {
    		$robots["index"] = 'noindex';
    		$robots["follow"] = 'nofollow';
    	}
    	return $robots;
    });

    Here’s how you can add filters/hooks to your WordPress site:
    https://rankmath.com/kb/wordpress-hooks-actions-filters/

    Let us know how it goes. Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    thanks, I added. i wonder does rank math provide specific seo services?

    Hello,

    I’m sorry to inform you that we currently do not offer one-on-one help or SEO Services, but be assured that we’ll be here to assist you to resolve any issues that come up.

    Looking forward to helping you.

    Thank you.

    Anonymous
    Rank Math free

    hi,

    hello, the indexes I mentioned have not been deleted (I guess it takes time, I don’t know.) but now also indexes such as “max-results” began to form. what is the reason for all this?

    Hello,

    Google tends to discover these types of URLs if these pages are crawled within the contents of your website as an internal link.

    Kindly share the affected URLs here so we can check why Google is still indexing them. You may share the URLS in the sensitive data section.

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

The ticket ‘nonsense indexes like /?cat=-1 , /?zx=3f82’ is closed to new replies.