[pmwiki-users] using URL pmwiki.example.com
Carlos AB
cabsec.pmwiki at gmail.com
Fri Aug 20 22:59:54 CDT 2010
I think you could use something like this:
//$subject = $_SERVER['HTTP_HOST'];
$subject = 'simon.pmwiki.com:8080';
if(strpos($subject,':')){
$domain = explode(":",$subject);
$domain = $domain[0];
}
else $domain = $subject;
if(strpos($domain,'.')){
$host = explode('.',$domain);
$host = $host[0];
}
else $host = $domain;
if($host =='simon'){
echo "bunch'o'stuff";
}
Not fully tested .
CarlosAB
On 8/20/10, Simon <nzskiwi at gmail.com> wrote:
> Has anyone configured their wiki to run on an address such as
>
> *mywiki*.example.com (where example.com is their domain name)
>
> I want to be able to run a farm of PmWikis with URLs such as
>
> example.com
> *mywiki*.example.com
> *yourwiki*.example.com
>
> tia
>
> Simon
>
More information about the pmwiki-users
mailing list