Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author George Pattichis

    (@pattihis)

    Hello @chadcloman ,

    Thank you for informing me about this scenario.

    In theory, you can only have one robots.txt file simply because web agents only look for robots.txt files at the root of a domain/web server. The robots.txt specification declares that the robots.txt file may exist only on the root folder: example.com/robots.txt. Outputting the file on a subdirectory isn’t permitted: example.com/wordpress/robots.txt.

    This is interesting and I will be looking into it more, to offer a solution for this case as well.

    May I ask, which one of the two methods described in the link you referenced did you use?

    Thanks again,
    George

    Thread Starter Chad Cloman

    (@chadcloman)

    Thank you for responding. I used method #1. Also, to clarify, after making a change to robots.txt via the plugin:

    • The root-level virtual robots.txt was unchanged
    • The subdirectory robots.txt (pointed to by the plugin) didn’t exist

    I made sure to clear caches and do a hard refresh when checking.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn’t seem to work when WP installed in subdirectory’ is closed to new replies.