I am trying to get SiteAcess to work with a subdmain..

So I have added an empty SiteRoot in the /subdomain folder
and added a DTML Method

<dtml-let hostname="_.string.join(_.string.split(_.string.split(HTTP_HOST,
':')[0], '.')[-2:], '.')"
 sitemap="{'subdomain.domain.com': 'subdomain'}">
    Do we have a match?
<dtml-if expr="sitemap.has_key(hostname)">
Set the logical root: <dtml-call "REQUEST.set('SiteRootPATH', '/')">
Add physical root: <dtml-call "REQUEST.path.append(sitemap[hostname])">
</dtml-if>
</dtml-let>


But am not getting any anything (still just points to the root.

Help?

Thanks,
J


_______________________________________________
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )

Reply via email to