[pmwiki-users] URL/host based configuration

Peter Bowers pbowers at pobox.com
Sun Nov 13 14:46:31 CST 2011

On Sun, Nov 13, 2011 at 9:20 PM, Oliver Betz <list_ob at gmx.net> wrote:
> I want to use the same installation of PmWiki for two domains to avoid
> data duplication and provide easier maintenance.
> is something like
>  if(preg_match("/foo.invalid$/", $_SERVER['HTTP_HOST']))...
> the right way to check for the domein, or should I better use

For a similar requirement on one of my sites I have used
$_SERVER['SERVER_NAME'] with good success.  It's not pmwiki
specifically in that case, but in all other respects sounds identical.


More information about the pmwiki-users mailing list