I have trouble with this module when activated in multiple domains.

There is http://www.domain.com/sitemap.xml and http://sub.domain.com/sitemap.xml

The trouble is that both files always come with the same content which always is the one which has been updated last. To me that sounded like a caching problem but even turning all caching off still produces the same result.

So active submission of updated sitemaps to the search engines works fine but if the search engine came back looking at the most current version they get confused because they find the wrong sitemap.

What can I do about it? I looked into the code and wasn't successful.

Comments

jurgenhaas’s picture

Status: Active » Fixed

I had to search getenv('...') and replace it with $_SERVER['...'] (ATTENTION: different type of brackets), now it works. This is because of IIS6 which obviously doesn't support getenv() in PHP.

darren oh’s picture

Status: Fixed » Active

Let's leave it active until we have a patch.

shadyman@erroraccessdenied.com’s picture

Is this part of the same problem? My sitemap, which is one sitemap for all of my multiple domains, as described in the issue, reads:

URL, Updated, Changes, Priority
http://erroraccessdenied.com/http%3A/%252Fwww.funnymemes.com/node/578 2006-09-30T02:09:43+00:00 yearly 0.8

http://www.funnymemes.com is one of my multiple domains, and erroraccessdenied.com is my master domain. Obviously this gigantic link that the sitemap puts together doesn't work.

So.. same problem, or different?

ingola’s picture

I have multiple sites (same folders, different databases). Some of my sites works fine with the module, but others not. The google webmaster tools is sending Http error 403 (forbidden). (I have no problems with the 4.7.x version of this module on multiple sites.)

darren oh’s picture

Title: Doesn't work with multiple domains » getenv() not supported by IIS
Status: Active » Fixed

The original bug was fixed in CVS commit 83400. However, in the interest of compatibility with IIS, I have eliminated the use of getenv() in CVS commit 83795. More information is available in the PHP documentation.

Anonymous’s picture

Status: Fixed » Closed (fixed)