multi-site and siteaccess

Author Message

kavi kavi

Friday 12 January 2007 2:14:53 am

I Every body ! Happy NEW YEAR 2007 !!!!!!!!!!!!!!!

I have one installation of ezpublish 3.8.6.
I have a menu like this
SITE (nodeID=2)
|
|_SITE1 (nodeID=85)
|_SITE2 (nodeID=86)
|_SITE2 (nodeID=87)

The different menu are the different siteaccess.
When i go to the url http://localhost, I'm in SITE where I see the 3 other site access.
And when i go to http://localhost/SITE1 i'm in default folder of SITE1...same for 2 other sites.

One thing that i don't understand is that when i want to go to another site I have this url :
http://localhost/SITE/SITE1 while i have to go by the url http://localhost/SITE1.

I don't know if i'm clear in my explaination ?!!

Please help !
kavi

Betsy Gamrat

Friday 12 January 2007 10:20:19 am

kavi,

You can create multiple siteaccesses that can use the same database, or a different database.

If you want to use the same data, but a different design, then you can modify override/site.ini.append.php and add a new siteaccess. Then, you can copy the initial siteaccess/site.ini.append.php (renaming as appropriate).

That will allow you to use different designs with the same data.

To use a different database, use siteaccess/site.ini.append.php and add in the new database information.

Good luck,

Betsy

kavi kavi

Monday 15 January 2007 12:17:25 am

Hi Betsy !
Thanks for your reply. I have done the changes in the override/site.ini.append.php. My question is about the "URL REWRITING" or "URL REDIRECTION", I want to get http://localhost/siteaccess/folder1 and not http://localhost/site/siteaccess/folder1.

HELP !!!!!!!!!
Kavi

kavi kavi

Friday 19 January 2007 2:06:05 am

Hi !
i've not yet found the solution of my problem.
I've one Homepage in my siteaccess "site" which representes 3 other siteaccess site1, site2, site3.
in siteaccess/override/site.ini, i've tried this

MatchOrder=uri
URIMatchType=map
URIMatchMapItems[]=www.site.net/site/site1;www.site.net/site1
URIMatchMapItems[]=www.site.net/site/site2;www.site.net/site2
URIMatchMapItems[]=www.site.net/site/site3;www.site.net/site3
It doesn't work!!!
I dont' understand how works the URIMatchType.

If someone can help me ?!
Thanks
Kavi

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:25:50
Script start
Timing: Jan 31 2025 06:25:51
Module start 'layout'
Timing: Jan 31 2025 06:25:51
Module start 'content'
Timing: Jan 31 2025 06:25:51
Module end 'content'
Timing: Jan 31 2025 06:25:51
Script end

Main resources:

Total runtime0.0142 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.0055 588.1328151.2109
Module start 'layout' 0.00550.0025 739.343836.6484
Module start 'content' 0.00800.0046 775.992290.1406
Module end 'content' 0.01260.0016 866.132833.9922
Script end 0.0142  900.1250 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002517.6578140.0002
Check MTime0.00117.7736140.0001
Mysql Total
Database connection0.00106.696510.0010
Mysqli_queries0.002416.822730.0008
Looping result0.00000.079010.0000
Template Total0.00128.510.0012
Template load0.00096.392310.0009
Template processing0.00032.036710.0003
Override
Cache load0.00064.454810.0006
General
dbfile0.00031.981280.0000
String conversion0.00000.040340.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