Managing Multi Domains workaround

Do something cool with CMS? Show us ...
This board is for 'Answers', and the discussion of answers... Not for questions.
Post Reply
pWorker
Forum Members
Forum Members
Posts: 48
Joined: Wed Aug 31, 2016 1:30 pm

Managing Multi Domains workaround

Post by pWorker »

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: Select all

{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.
Post Reply

Return to “Tips and Tricks”