Tagged: , , ,

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #985638

    Hi
    running enfold with Yoast,
    how do I block those url result from google – see exp:

    /wp-content/themes/enfold/framework/
    /wp-content/themes/enfold/framework/php/
    /wp-content/themes/enfold/framework/images/icons/
    /wp-content/themes/enfold/framework/js/

    and a lot others url’s.

    I have Try to block them via robotx with no success
    Thx

    #985748

    Hey afektomer,

    I’d suggest to read these guides: https://yoast.com/ultimate-guide-robots-txt/ and https://yoast.com/wordpress-robots-txt-example/ (also see https://yoast.com/robots.txt). Afaik it’s not recommended to block the access to /wp-content/themes/enfold/* folders however this code should work:

    
    User-Agent: *
    Disallow: /wp-content/themes/enfold/?*
    

    You need to place the robots.txt file to the wordpress root directory (where the wp-content, wp-includes, etc. folders are located). There’s no other easy solution to block search engines yet.

    Best regards,
    Dude

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.