Managing Multi Domains workaround
Posted: Sat Mar 10, 2018 4:17 pm
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.
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.
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: Select all
{capture assign=my_baseurl}
{$smarty.server.HTTP_HOST}
{/capture}
{if $my_baseurl|strstr:"domainB"}
{redirect_page page='domainB_home'}
{/if}