Developer forum

Forum » CMS - Standard features » Sitemap xml
Denys Ubizskyy
Reply

Hi.

On our website we have few top level pages that serve as a shortcut to pages below. For instance page:

www.example.com/us/news.aspx redirects to www.example.com/us/news/latest-news.aspx

As a result, in a sitemap.xml we get an empty record for www.example.com/us/news.aspx page:

<url>

<loc>/</loc>

</url>

<url>

<loc>www.example.com/us/news/latest-news.aspx</loc>

</url>

Is there a way to insert www.example.com/us/news.aspx or at least www.example.com at that place? 

Thank you in advance.


Replies

 
Mikkel Ricky
Reply

I cannot reproduce the empty record (the one with just / as the url). Which version of Dynamicweb are you running and how is your shortcut set up (i.e. Shortcut or Redirect)?

By default, the sitemap is generated using the xslt file /Admin/Public/SEOSitemap.xslt, and if you copy this file into Files/System/SEOSitemap.xslt you can modify it to make your sitemap behave just as you want.

Best regards,
Mikkel

 
Denys Ubizskyy
Reply

Thank you, Mikkel!
 

It is working!

 
António Ramos
Reply

Hi,

In the xml generated by the system, can we get all the pages from all languages? Where can we see or get this xml?

I'm asking this because we need to adjust the sitemap.xml with multi-lingual info... See http://developer.dynamicweb.com/Default.aspx?ID=2&PID=48&CategoryID=38&ThreadID=37640

Best regards,

António Ramos

 
Mikkel Ricky
Reply

Due to the missing feature mentioned in the other post, you cannot currently get a sitemap spanning multiple websites. Implementation of this is scheduled for Dynamicweb 8.6.1.

The easiest way to see the actual xml being used for the sitemap is to add a template like

<xsl:template match="/">
  <xsl:copy-of select="."/>
</xsl:template>

in /Files/System/SEOSitemap.xslt and then load the sitemap.

Best regards,
Mikkel 

 
António Ramos
Reply

Hi Mikkel,

Great news!! Thank you! :)

Best regards,

António Ramos

 
Martijn Bokhove
Reply

Hi

I'm running a website on version 8.6.1.11 with languagecopys.

In the sitemap only the pages of the mainsite are visible, not from the languagecopys.

Is the change mentioned by Mikkel on 03/12/2014 in this version (8.6.1.11)?

Gr

Martijn
 

 

You must be logged in to post in the forum