Can I configure Tridion to publish to one context (eg /myApp
) but write internal links as a different context (eg /myAppBeta/myApp
)? I'm hoping to do this by config not code if possible.
I have a Tridion website that runs at a context path in IIS, like
[IIS]/myApp
A 'beta' version of this website has now been deployed, and due to various constraints (including the old site is still running at domain.com/myApp
) the beta version has to run at a URL like
domain.com/myAppBeta/myApp
with HTTP rewrites mapping domain.com/myAppBeta
to the root of IIS. (so domain.com/myAppBeta/myApp
resolves to [IIS]/myApp
)
My problem is that Tridion writes and publishes internal links as /myApp/path/to/page
. This URL will not be caught by the HTTP rewrite rule, and will result in a 404 response from the existing site (still running at domain.com/myApp
).