mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #08073
[Bug 914490] Re: Sitemap generator tries to write to the web root
The first part of this is fixed in the patches here:
https://reviews.mahara.org/#q,status:open+project:mahara+branch:master+topic
:dataroot-sitemaps,n,z
This will write the sitemap files to dataroot rather than docroot, makes
sitemaps available from the download.php script, and changes the links
in the sitemap index to use the new download.php urls. This at least
fixes the errors in cron.
Two things still need to be done:
First, work out how to point search engines at the sitemaps. This could
be done manually, but I think it may also be as simple as putting a
"Sitemap:" line into robots.txt with the new download.php url (for the
sitemap index) in it, but it will need to be tested on a crawlable site
somewhere. If we were to add this line to the default mahara
robots.txt, we need to check that things are ok when sitemap generation
is off, because then the url will point to a file not found page when
perhaps it should deliver an empty xml file.
Secondly, we need to add the help file in site options, and explain what
the sitemap urls are, what would need to be done to submit sitemaps
manually to a crawler, and maybe also something for the server
administrator on how to configure the webserver to make the sitemaps
appear at wwwroot/sitemap.xml, etc.
** Changed in: mahara
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/914490
Title:
Sitemap generator tries to write to the web root
Status in Mahara ePortfolio:
In Progress
Bug description:
Shouldn't they go into dataroot instead?
If that's not going to work for some reason, we should disable the
"generate sitemap" checkbox whenever the docroot is unwritable (99% of
sites).
Also, the help file for "generate sitemap" is currently missing - if
sitemap generation requires the admin to mess around with directory
permissions, it would be good to tell them about that somewhere.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/914490/+subscriptions
References