The Easy Way to Submit Your Sitemap to Search Engines

| Coding Tutorials
How to Submit Your Sitemap to Search Engines - The Easy Way

This tutorial will show you an easy way to submit your sitemap to multiple search engines.

It's a bit of an obscure method, although it's well documented. We'll edit the robots.txt file to insert one line of code. And that's it. An account isn't needed and it's supported by Google, Bing, Yahoo, and Ask.

Let's get started ...

Copy the URL of your sitemap

  • Go to your sitemap in your browser
  • Copy the URL in the navigation toolbar:
copy your sitemap url

Edit your robots.txt file

  • Access your host's file manager or FTP.
  • Navigate to your site's folder.
  • Edit the robots.txt file:
edit your robots.txt file

Add the following line to the robots.txt file:

sitemap: [absoluteURL]

Replace [absoluteURL] with your pasted URL from step #1. If you're manually typing in the URL, be sure to include https:// or http:// and www (if your sitemap URL contains it).

Here's an example:

sitemap: https://www.ostraining.com/sitemap/

Save the file and you're done! That's all there is to it. The next time the search engines crawl your site, they'll know about your sitemap.


About the author

Nick is the Director of Support at OSTraining and you can find him in almost every area of the site, from answering support requests and account questions to creating tutorials and software.