ElkArte Community

Project Support => Support => Topic started by: Nifty on January 04, 2016, 08:04:56 am

Title: Multihomed Boards
Post by: Nifty on January 04, 2016, 08:04:56 am
Hey @all,
is it possible to configure ElkArte to run on more than one Domain ? I have a Forum which is accessible from more than one Domain, and like to have this on ElkArte as well ? I haven't found any Topics about this.

Thanks & best Regards
Nifty
Title: Re: Multihomed Boards
Post by: emanuele on January 04, 2016, 12:29:48 pm
Do you mean same content presented on multiple domains?
Title: Re: Multihomed Boards
Post by: Nifty on January 04, 2016, 12:31:05 pm
Yes.
Title: Re: Multihomed Boards
Post by: NetFlag on January 04, 2016, 12:46:12 pm
Hmm...maybe this one [BETA] MESFA - Multi ElkArte Sub Forum Addon (http://www.elkarte.net/community/index.php?topic=2162.0).
Title: Re: Multihomed Boards
Post by: emanuele on January 04, 2016, 12:52:58 pm
The multi-sub forum is to create different sub-forums with different content, that's why I asked. ;)
If you want the same content, you can't do it without some tweak here and there (at the moment I'm not able to quantify them) because all the URLs (themes, images, etc.) will be different (unless you setup a common domain for them and that could make sense indeed, a 3rd domain used to serve the assets), so there should be to hook into the theme loading to replace all the URLs with the correct one. What's left are $boarddir and maybe other minor stuff.
Title: Re: Multihomed Boards
Post by: Nifty on January 04, 2016, 12:57:17 pm
Ok, Thanks.

It was only a question of time until i had to write my first Elkarte Addon ;)
Title: Re: Multihomed Boards
Post by: Joshua Dickerson on January 04, 2016, 01:31:17 pm
Shouldn't really be hard. When you loadTheme() find 'init_theme' hook and just change the urls. Your web server will need to be configured to point to a common set of files though.
Title: Re: Multihomed Boards
Post by: ahrasis on January 11, 2016, 09:38:19 am
Actually you can run multiple domains with the same content using the said addon (though you may be penalized). Just select the same category. ;)