- Go to Plugins from admin dashboard.
- Search for Yoast SEO.
- Install and Activate that plugin.
![](https://studyraft.com/wp-content/uploads/2022/04/image-162.png)
Go to SEO > Tools tab and click File editor option.
![](https://studyraft.com/wp-content/uploads/2022/04/image-163.png)
Click Create robots.txt file button.
![](https://studyraft.com/wp-content/uploads/2022/04/image-164.png)
Click Save changes to robots.txt file after adding your changes to that file.
![](https://studyraft.com/wp-content/uploads/2022/04/image-165.png)
Accessing /robots.txt file will give you the robots.txt file content in the response:
![](https://studyraft.com/wp-content/uploads/2022/04/image-166.png)