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
____________________________________

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 06:16:40
Script start
Timing: Jan 31 2025 06:16:40
Module start 'layout'
Timing: Jan 31 2025 06:16:40
Module start 'content'
Timing: Jan 31 2025 06:16:40
Module end 'content'
Timing: Jan 31 2025 06:16:40
Script end

Main resources:

Total runtime0.0119 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.1250151.2109
Module start 'layout' 0.00520.0020 739.335936.6484
Module start 'content' 0.00710.0035 775.984490.2656
Module end 'content' 0.01060.0012 866.250029.9922
Script end 0.0118  896.2422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002016.7377140.0001
Check MTime0.00097.7557140.0001
Mysql Total
Database connection0.00108.473410.0010
Mysqli_queries0.002521.305130.0008
Looping result0.00000.108610.0000
Template Total0.00097.710.0009
Template load0.00075.936410.0007
Template processing0.00021.720810.0002
Override
Cache load0.00054.181410.0005
General
dbfile0.00021.988280.0000
String conversion0.00000.050340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs