AEM 6.3 | Support to same vanity URL for multiple sites

Avatar

Avatar

vivekanandm17

Avatar

vivekanandm17

vivekanandm17

23-10-2017

I have two websites which are in different domains but use the same AEM instance. I have setup same vanity URL for the two pages-

  1. /content/project/en/my-page
  2. /content/project/es/my-page.

I want this page to be accessible like this-  siteone.com/my-vanity-url and sitetwo.com/my-vanity-url.

I have done required setup in dispatcher for vanity URLs but with /my-vanity-url in Vanity URL for both pages, dispatcher is serving just the en version of page in both cases.

In my case, rewrites will not work as the normal page URLs and vanity URLs do not have a identifiable pattern. The original page URLs do not have /content/project and no extension; same is true for the vanity URLs.

Any pointers on it, how can this be achieved?

P.S. - I have seen many posts on this but those looks old thread so created this new one specifically for AEM 6.3.

Replies

Avatar

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K

Avatar

kautuk_sahni

Community Manager

Total Posts

6.0K

Likes

1.1K

Correct Reply

1.1K
kautuk_sahni
Community Manager

23-10-2017

Reference Article:- How to map multiple domains to one CQ5 instance

Jörg Hoh​ Any help here?

~kautuk

Avatar

Avatar

vivekanandm17

Avatar

vivekanandm17

vivekanandm17

24-10-2017

Thank you Kautuk for your response. The required sling mapping is already defined for the sites so normal URLs are working perfectly. Only issue is with the Vanity URLs. Looks like vanity URLs are handled by resource resolver and are completely independent of sling mapping.

Avatar

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K

Avatar

smacdonald2008

Total Posts

12.7K

Likes

1.4K

Correct Reply

2.3K
smacdonald2008

24-10-2017

When you setup Vanity URLs - what is happening?

Avatar

Avatar

vivekanandm17

Avatar

vivekanandm17

vivekanandm17

24-10-2017

For both the vanity URLs i.e.

siteone.com/my-vanity-url and, sitetwo.com/my-vanity-url

the en version of page (/content/project/en/my-page)

is rendered.

Avatar

Avatar

nadeensalvador

Avatar

nadeensalvador

nadeensalvador

27-03-2020

Hi @vivekanandm17

Did you find a way around this issue? I am experiencing the exact same thing but for AEM 6.4.
I have done the setup based on this:
https://adobe-consulting-services.github.io/acs-aem-commons/features/redirect-map-manager/index.html

 

@smacdonald2008 @kautuk_sahni would you have any advice on this?

Thank you

 

 

Avatar

Avatar

frankw80685428

Avatar

frankw80685428

frankw80685428

14-07-2020

I'm having the same issue here and would love to see if you have figured out a solution?