How to add robot.txt file in wordpress?

If you do not have a robots.txt file in your site's root directory, then you can always create one. All you need to do is create a new text file on your computer and save it as robots.txt. Next, simply upload it to your site's root folder.
 
Use your favorite text editor and create a text file. Save the empty file with the name robots.txt . If WordPress was blocking access to the virtual file, you should be able to edit the physical file from our plugin. If not, you can always edit the robots.txt directly on your server using FTP or a server file manager.
 
You can use Google Webmaster Tools to create your own robot.txt file, then download and upload to the root directory of the website
 
Back
Top