Noindex not working

#726087
  • Resolved Fahad Tariq
    Rank Math free

    Hi,
    I am unable to noindex the paginated pages of my product archives. I have enabled them in settings you can check in this image

    but they do not show noindex in source code as you can check in the image here.

    Looking forward for some help, thank you

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

    We apologize for the inconvenience you’re facing with the noindex settings for your paginated product archives. It seems that the noindex tag is not reflecting in the source code as expected.

    To resolve this issue, please ensure that the noindex settings are correctly configured in the Rank Math SEO plugin. You can check and modify the noindex settings for paginated pages by following these steps:

    1. Go to your WordPress Dashboard and navigate to Rank Math SEO → Titles & Meta → Misc. Pages.

    2. In the Misc. Pages section, ensure that the Noindex Paginated Single Pages option is enabled, as shown in the screenshot below:

    NoIndex-Paginated-Single-Pages

    Once you have confirmed that the setting is enabled, please save the changes and clear any cache on your website. After making these adjustments, wait for Google to recrawl your website to see if the noindex tag is now reflecting in the source code.

    If you continue to experience issues with the noindex settings, please feel free to reach out to our support team here, and they will be more than happy to assist you further.

    We appreciate your patience and cooperation as we work to resolve this issue for you.

    Sources:
    Rank Math ‘Titles and Meta’ Options and Settings
    Fix Excluded by NoIndex Tag – Google Search Console Status » Rank Math
    How to Fix the Submitted URL Seems to Be a “Soft 404” Error » Rank Math
    How to NoIndex Paginated Pages » Rank Math

    Hello,

    From the type of URL structure you shared, it seems that the page isn’t using WordPress’s standard pagination so you’ll have to programmatically set them to noindex using our filter code.

    Please make use of this filter code and see if this works for you:

    add_filter('rank_math/frontend/robots', function ($robots) {
    	$url = home_url($_SERVER['REQUEST_URI']);
    	if (strpos($url, '?product-page=')) {
    		$robots["index"] = 'noindex';
    		$robots["follow"] = 'nofollow';
    	}
    	return $robots;
    });

    You may refer to this guide on how to add filters to your website: https://rankmath.com/kb/wordpress-hooks-actions-filters/

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

    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 ‘Noindex not working’ is closed to new replies.