• Welcome to Sitemap Generator Forum.
 

Folders containing dash sometimes listed twice

Started by Gononda, November 25, 2010, 03:57:29 PM

Previous topic - Next topic

Gononda

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.:


<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?


Gononda

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.