• Resolved maham468

    (@maham468)


    Hello, Hope you are doing great!

    I want to no index several bulk URLs starting with query string /te= from google these strings are already blocked from indexing using robot.txt file but still google is indexing some of the URLs also I want to de index all the previous URLs with parameters /te=.

    Is there any way to do so using robot.txt file or any other method as these pages are not created in WordPress.

    Thankyou!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @maham468,

    Thank you for contacting support.

    If those pages are not part of WordPress, the only way to tackle those is with the server configuration file and add the noindex setting to the page headers.

    You can refer to this to learn how this could be implemented in Apache servers: https://serverfault.com/questions/992121/htaccess-how-to-add-x-robots-tag-to-a-specific-directory

    Unfortunately, our plugin can only control the settings from pages created in the WordPress installation.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter maham468

    (@maham468)

    Thanks for the cliarification!

    I am using shared hosting and my website is hosted on?server Litespeed version 6.0.12 can you tell me how to edit server configuration file to add no index tag on them.

    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @maham468,

    We recommend getting in touch with your hosting provider about this situation. Each server is very specific and it would almost impossible for us to give an accurate answer about the server specific rules to add in your particular case.

    Don’t hesitate to get in touch if you have any other questions.

    Thread Starter maham468

    (@maham468)

    Here is code will it work fine if I will add it to rank math .htaccess file?

    <If "%{QUERY_STRING} =~ /te=/">
        Header set X-Robots-Tag noindex
    </If>
    Plugin Support Rank Math Support

    (@rankmathteam)

    Hello @maham468,

    That would possibly work if the server is an Apache server. However, we recommend discussing this with the hosting provider as they have access to all the details.

    Thank you.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to no index bulk url using robot.txt file in wordpress’ is closed to new replies.