web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Suggested Answer

Name of sitemap file for a Power Pages website?

(1) ShareShare
ReportReport
Posted on by 16
Hello, I'm new to Power Pages and am trying to find out what the default sitemap file is for a Power Pages website so I can add it to Google Search Console. I assume this should be active* by default, and I've tried the usual ones, i.e., /sitemap.xml and /sitemap_index.xml... neither work. Note my site is still in Private mode... but I wouldn't think that should matter?
(Or is a sitemap something I need to manually enable for a Power Pages website?)
I have the same question (0)
  • Suggested answer
    Muhammad Shahzad Shafique Profile Picture
    2,373 Most Valuable Professional on at

    1. No Default sitemap.xml: Power Pages don’t automatically generate a standard ‘sitemap.xml’ file.
    2. Private Mode Impact: Your site being in private mode does matter - search engines can't access any files (including sitemaps) until the site is public.
    3. Alternatively: When your site goes public:
    • Power Pages automatically exposes metadata to Microsoft's crawlers
    • For Google, you'll need to:
      • Make site public
      • Manually submit your main URLs in Search Console
      • Optionally create a custom sitemap page
    4. Manual Sitemap Option: You can create a ‘sitemap’ page using Liquid template to list URLs, but this isn't a traditional XML sitemap.
     
  • IP-07032023-0 Profile Picture
    16 on at
    @Muhammad Shahzad Shafique Thank you for your reply and apologies for not responding sooner, I was on vacation. I've been exploring the last option you mentioned, re: manual sitemap creation. To be honest I'm shocked at how sitemap creation isn't an out of the box feature for Power Pages like it is for WordPress, HubSpot etc. Furthermore, Microsoft has no info on it that I can find. About the only info I could find was this on Google, pasted below, which I followed. I set up the web template, page template and web page just fine, but the only problem is that where it says "Copy and paste the provided XML sitemap code," there is no link to the code (which I assume is the Liquid code you referred to). I managed to find the source article for Google's info here, however there is no useful code there, so I think they made a mistake; if you click the link, there is no Liquid code for download: 
     
    I checked YouTube for possible answers too, and this video at least had some Liquid code that seemed like it had potential:
     
    {% assign primarynav = weblinks["Default"] %}
            {% for parentlink in primarynav.weblinks %}
            <br/>
            <a href="{{ parentlink.url }}"> <span> Parent </span> {{ parentlink.name }} </a>
            <br/>
              {% assign sublinklevel1 = parentlink.weblinks %}
              {% for childlink in sublinklevel1 %}
              <br/>
                <a href="{{ childlink.url }} "> <span> Child </span> {{ childlink.name }} </a>
              <br/>
              {% endfor %}
            {% endfor %}  
     
    I know nothing about Liquid code, but when I pasted it into my web template, I at least got my home page to be written onto the page as a hyperlink:
     
     
    Worst case if I can at least produce URLs separated by a line, then I can submit that to Google Search Console. But two problems (and I'm hoping you know how to fix them):
    • How do edit the Liquid code to get just the URLs to display? 
    • My site is still in draft mode (unpublished), and when I try to preview the sitemap page, I get this error message; any idea why?
       
    Thanks,
     
     
    ------------------------------------------------------
     
    To enable a sitemap in Power Pages for SEO purposes, you need to create a web template, configure a page template, and associate it with a web page. This process allows search engines to easily discover and index your website's content. 
     
    Here's a step-by-step guide: 
     
    1. 1. Create a Web Template:
      • In Power Pages, navigate to the Web Templates section.
      • Create a new web template named "Sitemap.xml".
      • Copy and paste the provided XML sitemap code into the "Source" field of the web template.
      • Set the "MIME Type" to "Text/XML".
    2. 2. Create a Page Template:
      • Navigate to the Page Templates section.
      • Create a new page template.
      • Select the "Sitemap.xml" web template you created in the previous step.
      • Uncheck the "Use Website Header and Footer" option.
    3. 3. Create a Web Page:
      • Navigate to the Web Pages section.
      • Create a new web page.
      • Select the page template you created in the previous step.
      • In the URL field, enter /sitemap.xml.
    4. 4. Clear Cache and Test:
      • Clear the website cache to ensure the changes are reflected.
      • Access your sitemap by navigating to https://yourportal.com/sitemap.xml in your browser.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 171 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 83

#3
Jimmy Passeti Profile Picture

Jimmy Passeti 50 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans