Forums / Setup & design / Multisite - one database

Multisite - one database

Author Message

Lars Tore Gustavsen

Thursday 23 June 2005 1:30:49 am

A planning a site for a organization.
We planning to use one database. (ez upgrading, ez sharing, ez maintains)
The organization have some offices. It's office will have it's own siteaccess.

Here is the content tree:
content_a/
content_b/
content_c/
offices/xxx (node id 1234)
offices/yyy

The site.ini override for xxx contain this:

[SiteSettings]
DefaultPage=/content/view/full/1234
IndexPage=/content/view/full/1234

When a user then connects to
mysite.com/xxx/about_us. They get exactly what I hope for.
When a user on the main site search for "xxx about" they get
mysite.com/offices/xxx/about_us. With wrong design ..

My wish is to redirect mysite.com/offices/xxx/* to mysite.com/xxx/*
What is the best way to do this?
- A apache rewrite rule?
- Url translation in ez publish?
- A pagelayout for mysite.com/offices/xxx/ that redirect to mysite.com/xxx/. ( Are there anything like the normal php "header ("Location:url");"
-Other?

Daniel Beyer

Thursday 23 June 2005 4:23:37 am

Hi,

if you want to hide a part of the path in the location bar, place this in /settings/siteaccess/office1/site.ini:

[SiteAccessSettings]
PathPrefix=offices

To use different designs put also this in:

[DesignSettings]
SiteDesign=office1

See this forum-message about sitedesigns, too:
http://ez.no/community/forum/setup_design/layout_ini_sitedesign_attribute#msg77715

Daniel Beyer
_________________________________
YMC AG
Kreuzlingen, Switzerland
web: www.ymc.ch
____________________________________