I'm using this PHP script to generate an XML sitemap:https://github.com/jdevalk/XML-Sitemap-PHP-ScriptIn the config file, I have my filetypes set to:\[code\]$filetypes = array( 'html' );\[/code\]And in the output from the script, it shows the following:\[code\]http://example.net/contact.html 100% Never 2013-03-13 13:28http://example.net/category/books.html 100% Never 1969-12-31 17:00http://example.net/post/81.html 100% Never 1969-12-31 17:00\[/code\]What I'd like it to show(and in search results):\[code\]http://example.net/contact 100% Never 2013-03-13 13:28http://example.net/category/books 100% Never 2013-03-09 14:01http://example.net/post/81 100% Never 2013-03-18 11:49\[/code\]Now here's the thing.. I'm using \[code\]mod_rewrite\[/code\] to remove \[code\].html\[/code\] from all pages, as well as \[code\]301 redirect\[/code\] all page requests with \[code\].html\[/code\] to their friendly version without an extension.Now what I'd like to know is if search engines will list the pages as having \[code\].html\[/code\] or not in search results, due to the sitemap.Regardless of the answer to that question though, what would be the proper course of action to have the sitemap script exclude \[code\].html\[/code\] from its listing?I've tried this in the replace array, but it didn't work:\[code\]$replace = array( '.html' => '' );\[/code\]And finally, all pages except those in root are not correctly retrieving \[code\]filemtime\[/code\](as seen in earlier example), and are therefore using the default 1969 timestamp.Could anyone explain a way the script could remove .html in the output, as well as retrieve the correct timestamp for files in directories beyond the root?