What’s needed for the correct robots.txt file to be served on the root folder?

Hi there, I’m currently scratching my head and don’t understand how to fix when the robots.txt file us updated on /pub/ but not in the root folder.

I’m working on a client which is currently having 2 robots.txt file, one in the root (manually uploaded and wrong) and another one in /pub/robots.txt file - updated via Magento 2.0 dashboard and with the right directives.

What’s needed for the correct robots.txt file to be served on the root folder? Could it be a permission issue?

Adjust your webserver to use the robots.txt file from the /pub subfolder.