[opencms-dev] Canonical site domain online
Paul-Inge Flakstad
flakstad at npolar.no
Wed Dec 10 14:59:01 CET 2014
Hi,
I was wondering, is there any way to enforce a canonical domain for online sites?
In opencms-system.xml, I have:
<sites>
<workplace-server>http://opencms.mainsite.com</workplace-server>
<default-uri>/sites/mainsite/</default-uri>
<shared-folder>/shared/</shared-folder>
<site server="http://www.mainsite.com" uri="/sites/mainsite/"/>
<site server="http://www.othersite.com" uri="/sites/othersite/"/>
</sites>
This setup results in the main site being available online as both opencms.mainsite.com and www.mainsite.com. What I want is to always enforce the latter.
What would be the ideal approach here? Is there any config setting I've overlooked, or should I simply set the <default-uri> to a completely separate "dummy" folder?
Best regards,
Paul
More information about the opencms-dev
mailing list