I have a problem in that my SERVER_NAME is
www.URL but I use the domain name
without the www. To host my closed wiki. This works fine until I submit an
edit and the www. Is added meaning I have to log in again.
Is there any way round this?
In OutputPage.php I changed:
$hostname = $_SERVER['SERVER_NAME'];
to
$hostname = $_SERVER['HTTP_HOST'];
As I thought this might force it to work as HTTP_HOST is what I want the web
address to begin with, but it didn't change anything (it still works but
just the same - not in the way I would like).
Any advice? I know I could change the SERVER_NAME, but I use a couple of
domains on the same IP and wanted it to be right for both.
Many thanks.