• Resolved soquinn99

    (@soquinn99)


    I know the special pages > Search pages with the plugin are set to:

    <meta name=”robots” content=”noindex,follow”/> by default.

    But what if we want some search pages/urls strings indexed and some not? Is there a way to specify this or can you simply mod re-writing the urls to something pretty or is it still blocked?

    Example search string being blocked by default:

    https://site.com/?wp_search=1&wp_make_name=Acura&wp_post_city=Tampa

    Version to index:

    https://site.com/acura/tampa/

    both would be the same search results on the site.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    By default, Yoast SEO set noindex robots meta to the search page as this is not necessary to appear in the search results. However, if you do want to set index robots meta to search page, you’ll need to use the wpseo_robots filter. You will need to check for the search page conditionally and apply the relevant filter.

    Thread Starter soquinn99

    (@soquinn99)

    “You will need to check for the search page conditionally and apply the relevant filter.” Thanks @mazedulislamkhan any sample coding or other resources I can check showing more on how I can do this?

    Plugin Support Michael Ti?a

    (@mikes41720)

    We can’t offer support on custom code (needed to change (core) features of our plugin). Since we don’t want to take the risk that we break your website by suggesting incorrect or incomplete code, we cannot advise you on how to make such changes. Maybe someone watching these forums can assist you further, but if your topic is inactive for 7 days, we’ll mark it as resolved to keep the overview.

    Thank you for your understanding.

    Thread Starter soquinn99

    (@soquinn99)

    So “check for the search page conditionally and apply the relevant filter” would be considered custom coding vs. sharing an example of some advanced configuration for the correct use of your plugin with a complex search strings? Do you offer custom coding then?

    • This reply was modified 7 years ago by soquinn99.
    • This reply was modified 7 years ago by soquinn99.
    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Unfortunately, we are unable to provide you an example code that you may follow and implement on your site.

    Thread Starter soquinn99

    (@soquinn99)

    I understand. Do you offer custom coding then to implement if you can not share here?

    Plugin Support Md Mazedul Islam Khan

    (@mazedulislamkhan)

    Unfortunately, we don’t offer custom coding service at Yoast.com. If you’re not familiar with how the WordPress hooks and filters work, please refer to the WordPress actions and filters guide in the following:

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Special Pages & Search Pages: Unblocking Some’ is closed to new replies.