301 Redirect not working on Cloud
Hello Community,
Using AEM as Cloud, there are two versions for customer registration with following URLs https://domain/abc and https://domain/xyz. We don't want https://domain/xyz anymore and want to have a 301 redirect to /abc page.
I have a rewrite now RewriteRule ^/xyz\/?(.*)$ /abc [R=301, L] this is working but partially.
When I hit this URL on QA environment https://qa.myproject.com/xyz , it is redirected to https://publish-domain/abc, page is served from AEM publisher. Expected redirection should be https://qa.myproject.com/abc
M I missing anything here ? I have also added sling mapping for https://qa.myproject.com domain under /conf/global/mappings but no luck.
Thanks in advance