Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

etc/map on author instance, only for wcmmode disabled

Avatar

Level 2

Hi,

Currently we have a "/etc/map/https" configuration on our publish environment (author & publish are hosted on 2 different servers).

This is because all the urls on the publish environment need to be user friendly. we don't want to publish urls containing "/content/en_us/path/index.html", but we want "en_us/index.html". This is working fine on the publish environment.

But now we have integrated Adobe Campaign in AEM and Campaign is connected to the Author instance (like the documentation has described Integrating with Adobe Campaign 6.1) It doesn't connect to the publish environment but author.

The problem now is that all the urls also need to be transformed to a "en_us/index.html" like URL. when campaign fetches the content from author.

We can set the same etc/map configuration on the author instance. this will solve the problem, but it also creates another one.

When setting up the '/etc/map' configuration on author, all the urls in edit, preview, design mode will rewrite the urls to the publish instance. ( the etc/map configuration contains the publish domain) and this is something we don't want.

When authoring (editing, setting pages up) we want to direct to page in the author instance itself, we don't want to redirect to the publish instance. for authoring/testing purposes on the author instance.

Is it possible to only execute the etc/map configuration in wcmmode disabled or something?

1 Accepted Solution

Avatar

Correct answer by
Level 2

Talked with adobe consultant, and it is not the usecase to setup /etc/map configuration on an author instance.

The issue should be resolved by setting up a proxy server, that listens on example: www.externalDomain.com/content/consumer_elec/b2c/europe/nl_be/index.html  and setup a rewrite on that URL to www.externalDomain.com/nl_be/index.html.

So the customer will not see the absolute URL directly.

View solution in original post

3 Replies

Avatar

Level 2

Can you check jcr resource resolver mapping for your index page e.g. /content/en_us/path/index.html in felix console, If it is giving you the publish url then i think for author you need to create  new sling mapping with its domain name.

Avatar

Level 2

Hi,

It is indeed referring to the publish instance (public domain).

But this is needed if Adobe campaign will fetch the final content from the author instance. the author instance is not public available, only the publish is. That's why the content is rewriting all the URLS to the publish (public) instance.

Or can the jcr resource resolver mapping have a condition to only be applied on wcmmode disabled?

Or do we need to connect the Adobe campaign server to the publish instance? But the documentation doesn't describe this.

Avatar

Correct answer by
Level 2

Talked with adobe consultant, and it is not the usecase to setup /etc/map configuration on an author instance.

The issue should be resolved by setting up a proxy server, that listens on example: www.externalDomain.com/content/consumer_elec/b2c/europe/nl_be/index.html  and setup a rewrite on that URL to www.externalDomain.com/nl_be/index.html.

So the customer will not see the absolute URL directly.