<h2>Generate XML sitemaps for SEO indexing</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2025" /><meta name="DC.rights.owner" content="(C) Copyright 2025" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="task" /><meta name="DC.title" content="Generate XML sitemaps for SEO indexing" /><meta name="abstract" content="Create XML sitemaps for web crawlers to index your public portal pages and improve search engine optimization for your portals." /><meta name="description" content="Create XML sitemaps for web crawlers to index your public portal pages and improve search engine optimization for your portals." /><meta name="DC.relation" scheme="URI" content="../../../build/service-portal/concept/sitemap-generator.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/navigation-and-ui/concept/c_NavigationAndTheUserInterface.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/configure-uis-and-portals.html" /><meta name="DC.relation" scheme="URI" content="../../../build/service-portal/concept/c_ServicePortal.html" /><meta name="DC.relation" scheme="URI" content="../../../build/service-portal/concept/seo-sp.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2025-07-31" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="generate-xml-sitemaps-seo-indexing" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Generate XML sitemaps for SEO indexing</title></head><body id="generate-xml-sitemaps-seo-indexing"> <div class="breadcrumb"><a class="link" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/administer/navigation-and-ui/concept/c_NavigationAndTheUserInterface.html" title="Interact with ServiceNow AI Platform applications and data in the way that works best for you.">Configure user experiences</a> > <a class="link" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/administer/general/concept/configure-uis-and-portals.html" title="Customize your interface to create an efficient, unique experience for users and customers.">Configure UIs and portals</a> > <a class="link" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/concept/c_ServicePortal.html" title="Service Portal allows you to build a mobile-friendly self-service portal experience for your employees or customers. Service Portal is a ServiceNow AI Platform feature that is active by default and interacts with parts of the platform so users can access platform features through portals.">Service Portal</a> > <a class="link" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/concept/seo-sp.html" title="Search engine optimization (SEO) helps portal users find the information they need and be more engaged with your portal. Adding SEO information to your public portal pages improves how external search engines index and rank pages to make them more findable.">Improving search engine optimization for portals</a> > </div> <h1 class="title topictitle1" id="ariaid-title1">Generate XML sitemaps for SEO indexing</h1> <div class="body taskbody"><p class="shortdesc">Create XML sitemaps for web crawlers to index your public portal pages and improve search engine optimization for your portals.</p> <div class="section prereq p" id="generate-xml-sitemaps-seo-indexing__prereq_qns_m5s_gtb"> <p class="p">Add SEO information to portal pages, such as meta tags that improve the searchability of <span class="ph">Service Portal</span> pages. For more information, see <a class="xref" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/concept/seo-sp.html" title="Search engine optimization (SEO) helps portal users find the information they need and be more engaged with your portal. Adding SEO information to your public portal pages improves how external search engines index and rank pages to make them more findable.">Improving search engine optimization for portals</a>.</p> <p class="p">Review the "Sitemap requirements" section of the <a class="xref" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/concept/sitemap-generator.html" title="Use the ServiceNow Sitemap Generator application to define and automatically generate XML sitemaps to improve search engine optimization of public portal pages.">Sitemap Generator</a> documentation topic to determine what content should be in the sitemap.</p> <p class="p">Role required: admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">Sitemap Generator</span> > <span class="ph uicontrol">Sitemap Configuration</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the UX Sitemap Configurations [sys_ux_seo_sitemap_config] table, select <span class="ph uicontrol">New</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">On the form, fill in the fields.</span> <div class="itemgroup info"> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="generate-xml-sitemaps-seo-indexing__table_vyy_21t_gtb" class="table" frame="border" border="1" rules="all"><caption><span class="tablecap"><span class="table--title-label">Table 1. </span>UX Sitemap Configuration form</span></caption><colgroup><col /><col /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d234179e121">Field</th><th class="entry cellrowborder" style="vertical-align:top;" id="d234179e124">Description</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d234179e121 ">Sitemap Name</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d234179e124 ">A unique name for the sitemap.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d234179e121 ">Description</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d234179e124 ">A description of the sitemap contents.</td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d234179e121 ">Active</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d234179e124 ">Option for whether the sitemap is automatically generated.</td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">From the form context menu, select <span class="ph uicontrol">Save</span>.</span> </li><li class="li step stepexpand" id="generate-xml-sitemaps-seo-indexing__new-sitemap-def"> <span class="ph cmd">From the <span class="ph uicontrol">Sitemap Config Definition</span> tab, select <span class="ph uicontrol">New</span>.</span> <div class="itemgroup info"> <div class="note important"><span class="importanttitle">Important:</span> <ul class="ul" id="generate-xml-sitemaps-seo-indexing__ul_eyf_k5p_ytb"><li class="li">You must ensure that the contents of your sitemap meet the <a class="xref" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/concept/sitemap-generator.html#sitemap-generator__section_w52_vbq_ytb">Sitemap requirements</a>.</li><li class="li">You don’t need to add the header and footer of the sitemap XML. These are added automatically when the sitemap is generated.</li></ul> </div> </div> </li><li class="li step stepexpand" id="generate-xml-sitemaps-seo-indexing__definition-type"> <span class="ph cmd">In the <span class="ph uicontrol">Type</span> field of the UX Sitemap Definition form, select one of the following options to define the contents of the sitemap either with a script or by specifying static URL elements.</span> <table border="1" frame="hsides" rules="rows" cellpadding="4" cellspacing="0" summary="" class="simpletable choicetable choicetableborder" id="generate-xml-sitemaps-seo-indexing__choicetable_fff_fps_gtb"><colgroup><col style="width:11.11111111111111%" /><col style="width:88.88888888888889%" /><table><thead><tr class="sthead chhead"><th class="stentry choptionhd" style="vertical-align:bottom;text-align:left;" id="d234179e210-option">Type</th><th class="stentry chdeschd" style="vertical-align:bottom;text-align:left;" id="d234179e210-desc">Action</th></tr></thead><tbody><tr class="strow chrow"><th style="vertical-align:top;" headers="d234179e210-option" id="d234179e223" class="stentry choption">Script</th><td style="vertical-align:top;" headers="d234179e210-desc d234179e223" class="stentry chdesc"> <p class="p">Dynamically generate the content from a script.</p> <div class="note"><span class="notetitle">Note:</span> If special characters such as <,>, &, or " are included in URLs, you must replace them with their equivalent escape characters.</div> </td></tr><tr class="strow chrow"><th style="vertical-align:top;" headers="d234179e210-option" id="d234179e238" class="stentry choption">Static</th><td style="vertical-align:top;" headers="d234179e210-desc d234179e238" class="stentry chdesc"> <p class="p">Specify the static URL elements to include in the sitemap.</p> <dl class="dl"> <dt class="dt dlterm">loc</dt> <dd class="dd">The full page URL. </dd> <dt class="dt dlterm">lastmod</dt> <dd class="dd">The date the page was last modified.</dd> <dt class="dt dlterm">changefreq</dt> <dd class="dd">The approximate frequency at which the page is updated.</dd> </dl> <p class="p">For more information about valid values for these elements, see the <a class="xref" href="https://www.sitemaps.org/protocol.html" target="_blank" rel="noopener noreferrer">Sitemaps XML format</a> topic on the sitemaps.org website.</p> </td></tr></tbody></table><ul><li class="li step stepexpand" id="generate-xml-sitemaps-seo-indexing__save-definition-type"> <span class="ph cmd">Select <span class="ph uicontrol">Active</span> and then select <span class="ph uicontrol">Submit</span>.</span> </li><li class="li step stepexpand"><strong>Optional: </strong> <span class="ph cmd">Repeat steps <a class="xref" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/task/generate-xml-sitemaps-seo-indexing.html#generate-xml-sitemaps-seo-indexing__new-sitemap-def">5</a> through <a class="xref" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/task/generate-xml-sitemaps-seo-indexing.html#generate-xml-sitemaps-seo-indexing__save-definition-type">7</a> to define additional content to include in the sitemap.</span> <div class="itemgroup info">You can create multiple sitemap definitions with any combination of types that combine to create the sitemap. For example, you could include both static XML and dynamic content from a script or you could include content from multiple scripts.</div> </li><li class="li step stepexpand"><strong>Optional: </strong> <span class="ph cmd">Configure the number of URL elements to include per sitemap page to control how many pages are in your sitemap.</span> <div class="itemgroup info">By default, 750 URLs are included per sitemap page. For URLs with <span class="keyword parmname">hreflang</span> tags, you should limit the number of URLs per page to the default value of 750 URLs.</div> <ol type="a" class="ol substeps" id="generate-xml-sitemaps-seo-indexing__substeps_st1_yx5_cwb"><li class="li substep substepexpand"> <span class="ph cmd">Enter sys_properties.list in the navigation filter.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Open the <span class="keyword parmname">glide.sitemap.page.count</span> property and set the value to the number of URLs to include per page.</span> <div class="itemgroup info">The maximum value is 5,000.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">From the UX Sitemap Configuration record, select <span class="ph uicontrol">Generate Sitemap</span>.</span> <div class="itemgroup stepresult"> <p class="p">If a sitemap includes more than the number of URL elements specified with the <span class="keyword parmname">glide.sitemap.page.count</span> system property, a sitemap index file that specifies the URLs of the sitemap pages is generated. The sitemap index file naming structure is <span class="ph filepath">sitemap-<sitemap-config-sysid>.xml</span> and the sitemap page naming structure is <span class="ph filepath">sitemap-<page>-<sitemap-config-sysid>.xml</span>.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Copy Sitemap URL</span> and add the sitemap URL in <span class="ph">Google</span> Search Console or to your <span class="ph filepath">robots.txt</span> file with the <span class="ph">Google</span> Custom Search integration.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> This URL accesses the latest sitemap or, if the sitemap is paginated, the latest sitemap index. It doesn’t execute scripts on the fly to regenerate the sitemap.</div> <p class="p">For information about using <span class="ph">Google</span> Search Console, see <a class="xref" href="https://support.google.com/webmasters/answer/7451001" target="_blank" rel="noopener noreferrer">Manage your sitemaps using the Sitemaps report</a> in the <span class="ph">Google</span> documentation. For information about the <span class="ph">Google</span> Custom Search integration, see <a class="xref" href="https://docs.servicenow.com/csh?topicname=r_ServiceNowProvidedintegrations&version=zurich&pubname=zurich-platform-administration" target="_blank" rel="noopener noreferrer">ServiceNow provided integrations</a>.</p> </div> </li><li class="li step stepexpand"><strong>Optional: </strong> <span class="ph cmd">Review any portals URLs that were excluded from the sitemap because they aren't publicly accessible.</span> <ol type="a" class="ol substeps" id="generate-xml-sitemaps-seo-indexing__substeps_orx_g4d_dwb"><li class="li substep substepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System Logs</span> > <span class="ph uicontrol">System Log</span> > <span class="ph uicontrol">Application Logs</span></span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">In the condition builder, enter the filter <span class="ph uicontrol">[App Scope] [is] [Sitemap Generator] AND [Message] [starts with] [The given URL]</span>.</span> <div class="itemgroup info">The <span class="ph uicontrol">Message</span> field includes the excluded URLs. For example, "The given URL <span class="ph filepath">https://<instance>/kb?id=kb_article_view</span> is not public".</div> </li></ol> </li><li><div class="section result" id="generate-xml-sitemaps-seo-indexing__result_fd5_vys_gtb"> <p class="p">All active sitemaps automatically regenerate once a day and include content from any of their active sitemap definitions. Previous versions of the sitemap are deleted. You can check the status of the daily job at <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System Logs</span> > <span class="ph uicontrol">System Log</span> > <span class="ph uicontrol">Application Logs</span></span> using the filter <span class="ph uicontrol">[App Scope] [is] [Sitemap Generator]</span>.</p> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="https://servicenow.com/docs/bundle/zurich-platform-user-interface/page/build/service-portal/concept/sitemap-generator.html" title="Use the ServiceNow Sitemap Generator application to define and automatically generate XML sitemaps to improve search engine optimization of public portal pages.">Sitemap Generator</a></div> </div> </div> </li></ul></colgroup></table></li></ol></div></body></html></div>