I have Domain Access 6.x-2.1, XML Sitemap 6.x-2.0-beta1 (last version), and Domain XML sitemap 6.c 1.0-beta 1 and when I go to mysite/sitemap.xml it shows a page not found.
Issue seems to come from the domain_xmlsitemap_xmlsitemap_context function as it works when I remove, for example the $context. But i presume that the module is useless then??
Comments
Comment #1
eme commentedJust to clarify the issue :
with such a configuration, I have a page not found for the main sitemap and the other. If I remove the return $context of the domain_xmlsitemap_xmlsitemap_context function, then I have access to the main sitemap, but no sitemap of the other sites.
Do you have any idea about this?
Comment #2
eme commentedDomain access updated. Seems to work...
Comment #3
AgaPe commentedSo how do i make it work?
I have
XML sitemap domain 6.x-1.0-beta1
XML sitemap 6.x-2.0-beta1
Domain Access 6.x-2.7
and page not found....
Comment #4
AgaPe commentedAnd why the setting that is added by
function domain_xmlsitemap_form_xmlsitemap_sitemap_edit_form_alter(&$form, $form_state) {
sets the same setting for all domains.
Would really appreciate any help, but i see that nobody checks it here regulary.
Anyway this module does not work...
Comment #5
eme commentedWell it works now for me (around 15 websites on the system).
Domain access 6.x-2.5
XML Sitemapt 6.x-2.0-beta1
Domain XML sitemap 6.x-1.0-beta1
One thing : if your XML sitemap is empty, then it shows page not found. Check if you have really things that are indexed in each domains.
Comment #6
alejo_m_c commentedsee http://drupal.org/node/789026, #23 Posted by Dave Reid on May 19, 2010 at 5:46pm
Comment #7
mattwmc commentedThat link didn't help in my case.
For some reason or another when I install this mod, after some time, my main site's sitemap is not found.
Not sure why. The subdomains are there, but the main sitemap can not be found. It's present in the XML Sitemap folder, too.
Comment #8
dave reidIf you enable this module, you must go to admin/settings/xmlsitemap and re-save your default/main sitemap again, making sure your default domain is selected. Otherwise you will get page not found errors.
Comment #9
mattwmc commentedHere are my steps. Am I missing something?
If I turn Domain XML Sitemap off and create a new sitemap for the main site - it works. Note: this sitemap has only 1 page.
When I turn Domain XML Sitemap on - page not found. Editing and re-saving - page not found.
Update Cache Files - page not found. Note: Now the sitemap shows 2 pages.
Where do I go from here?
Comment #10
mattwmc commentedSo, am I SOL or what?
Comment #11
alejo_m_c commentedThose modules are not working correctly together, apparently is a context problem.
I've managed to make it works, recommendations:
* Be sure you have for each domain indexed links for to built, if so, rebuilt the links. Is highly important to have just one "Sitemap cache directory" and "Default base URL" for each domain in "/admin/settings/xmlsitemap/settings".
* Do not edit this settings over another different domain, that is; if yo want XMLsitemap for http://yourdomain.com, do not edit it onto http://ANOTHER.yourdomain.com/admin/settings/xmlsitemap/settings.
* Make sure you have selected http://yourdomain.com in "domain-specific settings" before to save.
* In my case there are multiples sites and multiple language, you have to create a XMLsitemap for each case. even for any language I've changed my browser language but this is not necessary.
* to use http://drupal.org/project/elements, this allows update cached files, You have to see a message like this for each domain "\sites\default\files\xmlsitemap\40cd750bba9870f18aada2478b24840a\1.xml".
I hope these tips can be usefull.
Comment #12
tebb commented@alejo: Could you explain what project/elements does for you in this situation please?
You said: * to use http://drupal.org/project/elements, this allows update cached files, You have to see a message like this for each domain "\sites\default\files\xmlsitemap\40cd750bba9870f18aada2478b24840a\1.xml"
I looked at the project page and cannot understand the connection between elements and sitemap issues.
Comment #13
alejo_m_c commented@Dru-p:
In "/admin/settings/xmlsitemap"; if you don't have enable elements module, at the top you see this message "In order to perform bulk operations on the sitemaps listed below, it is highly recommended to download and install the Elements module.", if you had decided do not install it, is ok, as you can see you can create and use xml sitemaps modules without elements module. However about this issue (page not found) could be not generated because there is not phisical xml sitemap and you'll be redirected to page not found. If you use element module an additional option "update cached files" will shown within add new sitemap and sitemap list, use it for to refresh your sitemap files.
Comment #14
dagomar commentedi followed instruction in #11 to the letter, but this doesnt work.
#edit#
Maybe I misread or misinterpreted. I tried one last time, and this time I created the actual xml from the separate domains, not from one domain. This finally worked.
Comment #15
vasrush commented#alejo_m_c
Thanks very much for your helpful tutorial. Managed to make it work with your help.
One more thing to help others.
In order to update your sitemaps (with elements), you should do it from the same domain you wish to update.
The same way like you do for the per domain settings.