Forums / Developer / HostMatch regular expression

HostMatch regular expression

Author Message

Eirik Alfstad Johansen

Monday 20 October 2003 3:02:07 am

Hi,

I need some help building the HostMatch regular expression for our ezP installation. What I want is for each domain to point to a siteaccess with the corresponding name. This is except for "www." which should be ignored if it exists.

Here are some examples:

mydomain.no -> siteaccess named "mydomain.no"
www.mydomain.no -> siteaccess named "mydomain.no"
somesite.mydomain.no -> siteaccess named "somesite.mydomain.no"
www.somesite.mydomain.no -> siteaccess named "somesite.mydomain.no"

I'm also looking for suggestions on how to point to the admin interface. My idea is to prepend the hostname with "admin.", but I'm open for suggestions.

Thanks in advance !

Sincerely,

Eirik Johansen
Netmaking AS

http://www.netmaking.no/

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Eirik Alfstad Johansen

Monday 20 October 2003 4:11:41 am

Having done some testing, I realize that I might not be able to use the structure above as there seems to be some a problem using siteaccesses with periods. Anyone else familiar with this?

- Eirik

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/