AEM 6.3 | Support to same vanity URL for multiple sites | Community
Skip to main content
vivekanandm17
Level 2
October 24, 2017

AEM 6.3 | Support to same vanity URL for multiple sites

  • October 24, 2017
  • 2 replies
  • 5400 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

kautuk_sahni
Community Manager
Community Manager
October 24, 2017

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

Jörg Hoh​ Any help here?

~kautuk

Kautuk Sahni
vivekanandm17
Level 2
October 24, 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.

smacdonald2008
Level 10
October 24, 2017

When you setup Vanity URLs - what is happening?

July 14, 2020

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