Developer forum

Forum » CMS - Standard features » Sitemap.xml SEO quesion

Sitemap.xml SEO quesion

Hans Ravnsfjall
Reply

Hi

why do some of the enteties show <loc>/</loc> and how can I avoid this in the sitemap? see example here www.sendistovan.fo/sitemapl.xml

 

regards Hans


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Hans

Because you use external links as shortcuts on some pages - Dynamicweb tests for this, if the FriendlyUrl is <> "" - but there is an error.

In Admin/Public/SeoSitemap.xslt you can change to this line:

<xsl:template match="//Page[@FriendlyHref!='' and @FriendlyHref!='/']">

I've changed it on head, so it will be fixed in 8.7

 

You must be logged in to post in the forum