html works, not .xml
« on: June 30, 2006, 07:37:27 AM »
Hello! We have some trouble with sitemap.xml. sitemap.html is working fine but when we cut a link out from .xml and paste it into the browser it dosen't work proply. It is links from our item_list that is wrong the rest is fine.

From sitemap.xml:

Not working:  <loc>[ External links are visible to forum administrators only ]</loc>

Working: [ External links are visible to forum administrators only ]

Please Help
Re: html works, not .xml
« Reply #1 on: July 01, 2006, 01:29:56 AM »
Hello,

the links in xml sitemap are stored in a special encoding, according to Google sitemap protocol. You should not copy'n'paste the links directly from xml source. please use html sitemap for this.
Re: html works, not .xml
« Reply #2 on: July 01, 2006, 08:15:06 AM »
i read in googles help that you can do that to try if the link is working (cut it and paste it in a browser), we have error on line 1991 suspect it has some to do with åäö,

1991: <loc>[ External links are visible to forum administrators only ] b&aring;da</loc>
Re: html works, not .xml
« Reply #3 on: July 01, 2006, 08:23:33 AM »
From google:

Invalid URL



The listed URL is not valid. Correct the URL in the Sitemap, then resubmit.

Make sure the URLs listed in your Sitemap are encoded for readability and escaped properly. You also try copying the URL into a browser to see if the browser can understand the URL and load the page.

Make sure the URL contains no extra characters (for instance, make sure the URL isn't enclosed by quotes).

Re: html works, not .xml
« Reply #4 on: July 02, 2006, 01:03:21 AM »
Hello,

please make sure that you have special characters urlencoded in your links, for instance,
this is incorrect:
Code: [Select]
http://www.kondomeri.se/item_list.php?maingroup=Apoteket&secondgroup=För bådawhile this one is fine:
Code: [Select]
http://www.kondomeri.se/item_list.php?maingroup=Apoteket&secondgroup=F%C3%B6r%20b%C3%A5da