Team,
We are working on setting up a beta site with the same domain as main site, but support using the same author instance. We are thinking that on author, we would have two content nodes - /content/mainsite/en/mainsitepages for main site and /content/betasite/en/betasitepages
Author should be able to publish pages from both these places. No issues so far.
However, on publish instance, if we are hitting the publisher specified for beta site traffic then it should first look at the contents in main site path /content/mainsite/en/mainsitepages and it does not find (404) then look at the beta site path - /content/betasite/en/betasitepages
On the other publish instance which is assigned to serve the main site traffic, it should always look at the main site path /content/mainsite/en/mainsitepages and if it does not find the page then throw 404 error.
I think this can be implemented using resource resolver but I am not quite sure how should move forward.
I have been looking at the resource resolver documentation - http://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.html and was looking at internal redirect but could not find any other useful information.
I am not sure at this point if I am at the right track. Has anyone implemented similar support for beta site? Any suggestion or tips will be helpful. Thanks.