I am working on a project that uses Domain Access. The site has two domains one public(example.com
) & one for members(example.com/members
).
Some contents are common to both domains and some are domain specific.
Any link rendered on webpages has a relative path to that domain.
eg. A page that is displayed on both sites has the link (/some/link
). Clicking it would take you to example.com/some/link
if you click it on example.com
AND to example.com/members/some/link
if you click it on example.com/members
There are a few links that I want to appear on both domains but they should redirect to the members domain only.
eg. for the case described above the link should redirect to example.com/members/some/link
even if it is clicked form the example.com
domain.
Is there a way to do it?
UPDATE:
These are subdomains example.com
& members.example.com
. There is some server-side settings for url rewrite that makes them appear as example.com
& example.com/members
in URL.
example.com
&members.example.com
. there is some server-side settings for url rewrite that make them looks so. I will add this in question.