Manfred Kooistra wrote:
If I set $wgServer = 'http://mywiki.com'; in
LocalSettings.php, there is
no change that I can percieve: I don't get redirected from <http://
www.mywiki.com/wiki/Mainpage> to <http://mywiki.com/wiki/Mainpage>, and
the links on <http://www.mywiki.com/wiki/Mainpage> all point to other
www. pages.
So, what does $wgServer actually do, when I define it,
It is used to create some links.
and should I
use .htaccess to redirect from with-www. to without?
Having only one version is generally good.
Also, if I log in at
<http://mywiki.com/wiki/Mainpage>, if I call
<http://www.mywiki.com/wiki/Mainpage>, I am not logged it. Why is that?
Your cookie is defined for a different domain -> It isn't sent -> You
appear as logged out.