Topic on User talk:Kghbln

Natcolley (talkcontribs)

First, my profuse thanks for taking the time to lay this all out for us. Second, I could not get it to run on my command line, but Tech Support for my host did. That alone is an issue, because I don't know what if anything they did differently than I did. I got "could not open file". Third, and most important, I can navigate in a browser over the internet to a page called /sitemap.xml, which is blank. When I look at the file in my file manager, there are 4 gz files and one index. I am assume the index is the one that is the sitemap. But looking inside this file I get this:

http://wrong-url.fail////sitemap-mediawiki-mw_-NS_0-0.xml.gz 2011-03-23T23:36:14Z http://wrong-url.fail////sitemap-mediawiki-mw_-NS_1-0.xml.gz 2011-03-23T23:36:14Z http://wrong-url.fail////sitemap-mediawiki-mw_-NS_10-0.xml.gz 2011-03-23T23:36:14Z http://wrong-url.fail////sitemap-mediawiki-mw_-NS_14-0.xml.gz 2011-03-23T23:36:14Z

So, it is listing the four gz files and telling me I have the wrong url. Where do I go from here? Thank you.

Kghbln (talkcontribs)

Hi Natcolley, I am sure that you are referring to this page. I am not sure why it does not work via your shell. Sometimes in case several PHP version are installed on the server you have to add a affix to the call like php5 to set the version to be used. Thus your command would be php5 generateSitemap.php --server=http://www.nameofyourdomain.com. To me it looks that you did not replace the old file GenerateSitemap.php with a new file GenerateSitemap.php containing the code given on this page. In order for the index page to work you indeed have to rename sitemap-index-??????_.xml to sitemap.xml Hopefully I was able to help. Cheers