Folders containing dash sometimes listed twice
« on: November 25, 2010, 03:57:29 PM »
Most of my website folders contain a dash in the folder name. For some reason the free sitemap generator generates a sitemap for me with some URLs listed twice, one with a "-" and the other with a "%2D" - and this only happens with some of the folders containing a hash, e.g.:

Code: [Select]
<url>
  <loc>http://www.domain.com/sports%2Dequipment/</loc>
  <changefreq>weekly</changefreq>
</url>
...
...
...
<url>
  <loc>http://www.domain.com/sports-equipment/</loc>
  <changefreq>weekly</changefreq>
</url>

Why would that be?
Re: Folders containing dash sometimes listed twice
« Reply #1 on: November 25, 2010, 04:03:35 PM »
Hello,

it means that at some page you have a link to url with %26, and in other place the link is with "-".
Re: Folders containing dash sometimes listed twice
« Reply #2 on: November 25, 2010, 08:16:21 PM »
I think I've discovered the cause of the "%2D" characters I've been getting. My website's menu headings are included in all pages using the php "require" command, and for some reason my host's php server encodes some of the characters when including files in this way. So it is a host server related issue.