• Resolved Lori Boone

    (@pleazo)


    Hello,

    I am using the Dokan plugin for my online marketplace. When a new vendor signs up, they get the following pages created:
    /vendorname/
    /vendorname/toc/
    /vendorname/reviews/

    I want to set urls which have “/toc/” & /reviews/ in them to noindex. These are dynamic URLS which I cannot seem to do in the Yoast plugin.

    I already spoke with my hosting provider which gave me the following info:
    “Enter this in my robots.txt instead:
    Disallow: /toc”

    But it is not working since https://pleazo.com/shop/pleazo/toc/ is still showing as index. https://snipboard.io/vmO3pR.jpg

    What is the easiest way to set these URLs to noindex?

    I am not familiar with Apache servers (neither was my hosting provider) nor wpseo_robots. Is there an easier way to do this?

    Best,
    Chris

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello Chris,

    Thanks for reaching out again regarding this.

    Unfortunately, there is no setting in the Yoast SEO plugin to noindex dynamic URLs. The only option is to do it programmatically. This is done by using the wpseo_robots filter.

    Thanks

    Thread Starter Lori Boone

    (@pleazo)

    Hi @maybellyne thanks!

    How about setting canonical URLS for the ones below to /vendorname/ ?
    /vendorname/toc/
    /vendorname/reviews/

    Would I still need to do this by using the wpseo_robots filter? Or is there another way?

    Best,
    Chris

    Plugin Support Michael Tiña

    (@mikes41720)

    Hi @pleazo

    To change the canonical URL that Yoast SEO generated for a URL programmatically, you can use the wpseo_canonical filter.

    You can learn more about it here – https://developer.yoast.com/features/seo-tags/canonical-urls/api/

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Help with no indexing a dynamic URL’ is closed to new replies.