The easiest way to create or edit robots.txt file in WordPress is by using plugin. In the following example I am using Yoast SEO plugin.
Step 1:Log into WordPress dashboard.
Step 2: Yoast SEO -> TOOLS (as in the picture below)
Step 3: Click FILE EDITOR
Now if you don’t have any robots.txt file
Just click on create robots.txt file and that’s it. It is created now you can optimize it or edit as you would like it to be.
Related WordPress Articles from our WordPress Training Courses in London
How to hide date in WordPress post
WordPress Pinging how much should I ping
WordPress Trackback and Pingback difference
Cheap reliable WordPress web hosting reviews
How to install Google Tag Manager on WordPress
WordPress.com vs. WordPress.Org which is better
WordPress most popular content management system
Social Media Facebook Twitter feed plugin WordPress
How to disable trackbacks and pingbacks in WordPress
How to remove “leave a reply” comment box in WordPress
Image rotation issue iphone wordpress site & solution