I have the following setup in the cd_link_conf.xml
and links are resolving as expected.
<Host Domain="example.com" Port="" Path="/websitefolder/"/>
Another domain will be introduced soon, serving the same website (lets call it example2.com), and links need to resolve relatively to the visitor domain.
For example, if visitor is on example.com links need to point to http://example.com/websitefolder/page1.aspx
and if visitor is on example2.com links need to point to http://example2.com/websitefolder/page1.aspx
I have tried the following configuration
<Host Domain="" Port="" Path="/websitefolder/"/>
but it didn't solve my problem, as it didn't produce a relative link, instead I got http://websitefolder/page1.aspx
.
<Host Domain="/" Port="" Path="/websitefolder/"/>
produced the same result.
How can I setup linking relative to the visitor domain, with settings for Path active ?