What you need for this tutorial
- Yoast SEO
- WordPress CMS
Step 1 Installing Yoast
Once logged into the backend of your WordPress website, navigate to the plugins menu.
Now go to Add New
In the top right, search for Yoast
Click Install Now and Activate.
Step 2 Adding the sitemap through yoast
On the left-hand sidebar, go to the SEO tab.
Under the dropdown, go-to tools.
Once under the tools tab, look for the file editor
Under the robots.txt file add your sitemap.
To do this add Sitemap: Sitemap: http://www.example.com/sitemap_index.xml to the top of your robots.txt file
Click save changes to robots.txt
Now you should have your sitemap added to your robots.txt file.
Check out the video down below for the video tutorial.