adding canonical link in googlesitemap

Khathun s asked on September 20, 2018 10:52

Hi,

I have dynamic pages in my application,the page alias is setting from the customized code. I want to display the canonical URL in Googlesitemap for example I have a page structure of a page ROOt/Data/Branch/Page , it will display in google sitemap <loc>Domain/Data/Branch/page</loc>, but the page alias is Domain/page.

How can i display page alias in GoogleSitemap? i am adding ClassNames in GoogleSitemap.aspx for custom pages to display in googlesiteMap.

   Please, sign in to be able to submit a new answer.