I'm inserting a website map for the first time. I found this page:


That page shows examples about sitemaps with xml, should I insert and xml code in my html? any advice for my first sitemap?


This is a sitemap intended for web-crawlers. It is not inserted in any page but left as a separate XML file on your server. By the way, there is also a text version of this which is simply one absolute URL per line in a text-file. It does not have any metadata though.

For it to be found, you simply add a line identifying the file from your robots.txt. This will let any crawler find it. Google also accept a manual sitemap submission through their Webmaster Tools. Both methods are explained by Google here.

| improve this answer | |

The Sitemap is an external file. There is no code to insert in your HTML pages.

The sitemap aims to list all urls of your website in order to help search engines to index them. If your website doesn't have a lot of pages or if Google indexes your web pages correctly, I wouldn't recommend you to spend too much time on it.

Google explains how to manually create a Sitemap: https://support.google.com/webmasters/bin/answer.py?hl=en&answer=34657

Once the xml file uploaded, you will need to submit it to Google: https://support.google.com/webmasters/bin/answer.py?hl=en&answer=156184

You can also declare the URL of your sitemap in your robots.txt file: http://www.sitemaps.org/protocol.html#submit_robots

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.