Developer forum

Forum » Development » Port number showing in /sitemap.xml

Port number showing in /sitemap.xml

Smári Alfreðsson
Reply

Hello,

We are wondering what could be the cause of when navigating to the /sitemap.xml from a production website that all links include the port number (see attached picture). 

We are running on DW9 9.15.6

Best,
Smari

Skjámynd_2024-10-28_112755.png

Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

Hi

You might be running through a proxy and then the site actually runs on a different port than what the browser shows.

You can check this setting:

Sitemap.xml can be created in a couple of ways - using a template on a page in the page tree, using the original navigation based generation or using the new url provider based sitemap.xml

See this;

 
Smári Alfreðsson
Reply

Hi Nicolai,

Thanks for the quick response. I seem to be having both those boxes ticked already. But yes we thought maybe this was DNS related maybe since the site is using port 4445 instead of 443

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply

If the sitemap is generated by Dynamicweb, we do not insert the portnumber using sitemap.xml nodes.

This is the code that creates the sitemap.xml nodes:

How does you setting on website looks like:

 

Are you sure, that this solution is not using a template to generate the sitemap? Check your designs folder and see if you have a sitemap.xml.cshtml page.

Also check the file system on the server for a static generated sitemap.xml file.

Both of the above will be served if they exist before DW will send its version.

 

You must be logged in to post in the forum