68
Views
2
Comments
How to test sitemap.xml? is it still needed?
Question

Hi,


Is there a way to test internally in outsystems if sitemap.xml or robots.txt implementation is correct? Because I tried using online testing tools but URL is not yet accessible from outside.



2018-10-29 08-31-03
João Marques
 
MVP

Hi Carlos,


OutSystems doesn't generate either the sitemap.xml or robots.txt files automatically.

You can, however, expose a public-accessible webservice that returns the sitemap.xml and another one for the robots.txt.

For the sitemap generation, I recommend taking a look at something like https://www.xml-sitemaps.com/ and then using a text editor to customize the sitemap it comes up with. You'll probably need to customize further and prioritize the order of the elements in the generated map.


Kind Regards,
João

2019-02-24 00-15-06
Natalia Błaszczyk Alves
Staff

Hey Carlos,

There's a documentation page explaining how to create a REST method to get a list of all your app's pages, and you can use the REST endpoint URL in your sitemap.xml file. There's also a sample app that exemplifies how to do this: https://success.outsystems.com/Documentation/11/Developing_an_Application/SEO_in_Reactive_Web_Apps/Sitemap.xml_and_robots.txt 

I hope that can be useful :)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.