Support » Plugin: The SEO Framework » robots.txt

  • Resolved navar


    Hello, how do I edit the robots.txt generated by the plugins? I see that if I delete the one from the root of my website, the plugins generates an internal one in the folders of the same plugins, how do I edit the robots.txt?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author Sybre Waaijer



    You can use this plugin, which can modify the virtual robots.txt output:

    However, for it to work, you do need to add this snippet to your site (where do I place snippets?), because TSF overrides other “robots.txt”-edits.

    add_action( 'the_seo_framework_after_init', function() {
    	remove_filter( 'robots_txt', [ the_seo_framework(), 'robots_txt' ] );
    } );

    Alternatively, you can manually upload a custom robots.txt file to your website’s root folder (which you’ve deleted earlier). That’ll then be used.

    • This reply was modified 2 months ago by Sybre Waaijer. Reason: technicality
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.