Connect to your Wordpress instance and create and modify your robots.txt file from the terminal. In my case it's a Bitnami Lightsail instance. You can also do it with sftp but I always like to restrict file permission after creating the file.
All recipes for Bitnami lightsail Wordpress are documented at:
https://www.amarjanica.com/bitnami-wo...
--
Level up your coding skills with O'Reilly! O'Reilly has the books you need to take your coding to the next level. Try it free at https://oreillymedia.pxf.io/PyG3nQ