How to Set No Index For a Specific URL

#53585
  • Resolved Manoj Kumar Rana
    Rank Math free

    If you are looking in yoast have an option to set noindex job archive but I’m curious to know is there any such option to set noindex for jobs.

    Example URL: https://www.example.com/job/

    how can I set the above URL as noindex?

    You can find this option in Yoast: https://prnt.sc/sjpiva

    I guess these advanced options also should available in RM. Bcoz what currently I found is all the basic functions are available in Rankmath.

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

    Thank you for contacting Rank Math today.

    This feature is available in Rank Math as well. You can easily set the Job archive to noindex by navigating to Rank Math > Titles & Meta > Selecting the category and then checking the noindex option under Job Category Archives Robots Meta as shown in the below example:
    Screenshot

    Looking forward to helping you. Thank you.

    ​​​​​​

    I guess u guys aware that if we set the above-mentioned options then that will impact all the job URL, but there is no such option like yoast providing,

    yoast Providing much better functionality here. There are providing 2 options

    1. You can set up for job posts
    2. Separately you can also configure for archive section

    The second option is totally missing in RankMath. I think this is a major requirement of All users. I guess as you are not providing this option, so some users try from their side to fix it by redirect https://www.abc.xml/job/ to some different URL.

    https://prnt.sc/sk43tn

    Let me know is there any update on this.

    In the meantime, by using Rankmath Sitemap I am getting 410 error and also getting errors in webmaster tools. So when I search on ur previous ticket what I found is

    1. Previously also so many users facing the same issue which I am facing now.
    2. RM Team suggests goto permalink and click save and after that goto RM sitemap setting and hit save. This will fix the issue automatically.

    I agree that after doing this the issue is resolving. but as frequently I am getting this issue and every time doing the same job to fix which is not correct.

    I Guess RM has some issue so from your side you guys need to fix otherwise I may have some issue with my blog so I have to find out the root cause and need to fix.

    So as an initiative I have disabled RM sitemap and using Google XML sitemap plugin and if I am not getting any error then its a BUG of RM.

    I will update my observation after a few days.

    Hello,

    Thank you for contacting Rank Math today.

    I will pass on the feedback to our dev team. To workaround this, you can only noindex the jobs archive by using the following code snippet on 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_post_type_archive('jobs')){
             $robots['index'] = "noindex";
             $robots['follow'] = "follow";
         }
    	return $robots;
    });
    

    The sitemap issue is likely related to your caching plugin. Could you please check if the .sitemap_index.xml has been excluded from the caching rules?
    If you would still like to use the Google XML plugin then this is also an acceptable workaround.

    Looking forward to helping you. Thank you.

    ​​​​​​

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this ticket.