Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.
Not a member yet? Click here to register.
Forgot Password?

Multi site

Asked Modified Viewed 1,755 times
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
  • Answered 1 question
asked
Senior Member

I know how multi sites work with php-fusion.
But now the question is: is it possible to have multiple websites (on the same host) which share all php files and some of the data base tables? I was thinking of give each site an own index.php (in its own folder for that site) and set there the root path to the shared php files. The section which determine the root path in maincore.php should be byassed.
0 replies

2 posts

C
Chan
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
answered
Super Admin

A multisite setup uses the same maincore.php

Hence, it should be like this:

maincore.php
site_1/
site_2/
site_3/
infusions/
Then you do a mask. from site_1/ to another unique url on your host. That was how it was done in the earlier days.

However, the Multisite on Version 9 is untested during development as it was never covered.
1. SEO filepath might not work.
2. There should be a multisite controller in the Admin CP to properly setup and do this task so we can embed generate code on the htaccess level, and other things.
3. Masking domain must be supported by the host. I'm not sure on this at this moment even with our host.
0 replies
D
douwe_yntema
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
  • Answered 1 question
answered
Senior Member

Hmm
Then what files put in the folders:
site_1/
site_2/
site_3/

Are the php-files of the sites put in there?

My goal is to use the same code for different subdomains, and some database tables are shared by the subdomains,
but not all tables.
It is for V7, not 9.
0 replies

Labels

None yet

Statistics

  • Views 0 views
  • Posts 2 posts
  • Votes 0 votes
  • Topic users 2 members

2 participants

C
C
Chan 0
Lead Developer of PHP-Fusion
  • Super Admin, joined since
  • Contributed 3,842 posts on the community forums.
  • Started 232 threads in the forums
  • Answered 6 questions
D
D
  • Senior Member, joined since
  • Contributed 667 posts on the community forums.
  • Started 57 threads in the forums
  • Started this discussions
  • Answered 1 question

Notifications

Track thread

You are not receiving notifications from this thread.

Related Questions

Not yet