Forums / Install & configuration / Making multiple sites with one database

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Making multiple sites with one database

Author Message

Damien MARTIN

Friday 03 September 2010 2:49:45 am

Hi there,

I have 4 websites with common datas.

So, my tree is something like that :

/              [NodeID=2]
|- Site1       [NodeID=100]
|- Site2       [NodeID=200]
|- Site3       [NodeID=300]
|- Site4       [NodeID=400]
|- common      [NodeID=500]

And for each siteaccess I have :

site.ini.append.php

[SiteSettings]
IndexPage=/content/view/full/<My NodeID>/
RootNodeDepth=2

So it's ok, when I go to the root of the website I see the correct Node.

But there is something uncomplete with that... The path of each page stills :

/ home / website1 / my page

And I really would like to have

/ home / my page  (where home points to /home/website1)

So, as you should understoud, I want to remove the first folder ( Site[1,2,3,4] ) from my path and from my URL.

How could I do that ?

I suppose it is possible, but I don't see how.

Thanks,

Damien

Gaetano Giunta

Friday 03 September 2010 4:17:07 am

Sure it is! Hint: search for "path" and "prefix" in site.ini... ;-)

Principal Consultant International Business
Member of the Community Project Board

Greg McAvoy-Jensen

Sunday 05 September 2010 7:37:14 am

Damien,

There are more hints in this tutorial as well.

Granite Horizon, Certified Developer of eZ Publish Web Solutions
Provider of the SaaS Solution Granite Horizon In The Cloud | http://granitehorizon.com/cloud
http://granitehorizon.com | +1 916 647 6350 | California USA | @granitegreg
Blog: http://granitehorizon.com/blog

Damien MARTIN

Wednesday 08 September 2010 12:52:04 am

Hello Gaetano and Greg,

... IT ROCKS !!!!!!!!!!!!!!!!!!!!!

So, for those who don't want to read :

[SiteAccessSettings]
PathPrefix=<the name of the folder we want to remove from url>

Thank you again guys !!!