I am using a multi-site CMS 12 solution, which has 3 different domains configured in the Manage Websites section all using the same folder structure and content. I'll call themqa1.OptimizelySite.comqa2.OptimizelySite.comqa3.OptimizelySite.comI also have other applications that share a similar environment setup with 3 QA sites configured. qa1.WordpressSite.comqa2.WordpressSite.comqa3.WordpressSite.comIf the user is browsing on qa1.OptimizelySite.com, I want a LinkItem or Url property that directs to the Wordpress Site to go to qa1.WordpressSite.com. Similarly if they are on qa3.Optimizelysite.com i want them to be directed to qa3.WordpressSite.comWhat is the best way to achieve this?
Sounds like you need to write a custom htmlhelper to house your rewriting logic.
Thanks Surjit. Do you have any links to a solution with similar rewrite logic?
Take a look at the extension method Url.ContentUrl, you could write your own version of it and have your rewrite logic in there. I believe there's two version of it, one for ContentReferences and the other for the Url property.