CMS Made Simple Forums
https://forum.cmsmadesimple.org/

Managing Multi Domains workaround
https://forum.cmsmadesimple.org/viewtopic.php?f=4&t=78043
Page 1 of 1

Author:  pWorker [ Sat Mar 10, 2018 4:17 pm ]
Post subject:  Managing Multi Domains workaround

Hi all,

I had to combine 2 domains for specific pages of my cmsms installation (1 installation, 1databank). An easy trick is to setup domains by your webhoster to same webspace root folder. So let`s say you have domain
http://www.domainA.com and http://www.domainB.com. I placed a bit code right before the head-section in the default star page template.

Code:
{capture assign=my_baseurl}
{$smarty.server.HTTP_HOST}
{/capture}
{if $my_baseurl|strstr:"domainB"}
{redirect_page page='domainB_home'}
{/if}


The only disadvantage of this is, that your start page of http://www.domainB.com will be http://www.domainB.com/home, but in my case I can live with that.

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/