I have set up wiki which can only be read by logged in users, by setting:
$wgGroupPermissions['*' ]['createaccount'] = false; $wgGroupPermissions['*' ]['read'] = false; $wgGroupPermissions['*' ]['edit'] = false;
$wgGroupPermissions['user' ]['move'] = true; $wgGroupPermissions['user' ]['read'] = true; $wgGroupPermissions['user' ]['edit'] = true; $wgGroupPermissions['user' ]['upload'] = true;
However, a non logged in user visiting any page raises an error, and this appears to call:-
function returnToMain( $auto = true, $returnto = NULL )
which contains a 10 second refresh (on the the main page) with the notice
*** Login Required
You must login to view other pages.
Return to Main Page. ***
$wgOut->addMeta( 'http:Refresh', '10;url=' . $titleObj->escapeFullURL() ); }
I have set the refresh to 600 seconds to reduce server load. This Wiki is on the Internet (that is not an intranet).
Any other thoughts or suggestions?
Regards,
Gordo