Issues with etc/map redirect | Adobe Higher Education
Skip to main content
Level 5
January 6, 2021
解決済み

Issues with etc/map redirect

  • January 6, 2021
  • 3 の返信
  • 7578 ビュー

Hello Community - I need your suggestion related to etc/map redirect. I am trying to implement the below redirect

 

PS: We don't want to make any changes in Apache.

 

DNS: www.prepaid.test.com/prepaidcards/student.html -> www.prepaid.test.com/content/test/en/account/cardenrollment.html

 

Existing setup is CDN -> Dispatcher -> Publish Instance

 

I have the following entries but the redirect is not happening. I have also verified in /system/console/jcrresolver. I wanted to implement it as a 301 redirect. Are these entries correct?

 

Also I have another question. I have kept the domain name for sling:Mapping. is that something that we need to follow the exact name of the domain/website or we can have any name? Also do I need to specify the port no. in the node name or not? Please advise.

このトピックへの返信は締め切られました。
ベストアンサー AlbinIs1

Are you trying for an external redirect(sling:redirect) or internal rewrite(sling:internalRedirect)? Also check AEM is reciving direct HTTPS traffic or X-Forwarded* headers, if not create the et/map configurations under HTTP node.

Refer to https://medium.com/tech-learnings/adobe-experience-manager-aem-implementing-custom-redirect-vanity-urls-manager-857c699ccc29 for more details.

Refer to https://techforum.medium.com/configure-sling-mapping-for-resource-resolution-in-adobe-experience-manager-deep-dive-b06280a2bf8e for more details on enabling etc/mapping.

Regards

Albin I

 

 

3 の返信

Kunal_Gaba_
January 6, 2021

 You can add a rewrite rule in Apache to do a 301 redirect. Why you are not using Apache/Web server for rewrite ?

v1101作成者
Level 5
January 6, 2021
@kunal_gaba_ - I have mistakenly pressed this as a solution. We dont want to have it in Apache. The requirement is to keep it in etc/map
AlbinIs1Community Advisor回答
Community Advisor
January 6, 2021

Are you trying for an external redirect(sling:redirect) or internal rewrite(sling:internalRedirect)? Also check AEM is reciving direct HTTPS traffic or X-Forwarded* headers, if not create the et/map configurations under HTTP node.

Refer to https://medium.com/tech-learnings/adobe-experience-manager-aem-implementing-custom-redirect-vanity-urls-manager-857c699ccc29 for more details.

Refer to https://techforum.medium.com/configure-sling-mapping-for-resource-resolution-in-adobe-experience-manager-deep-dive-b06280a2bf8e for more details on enabling etc/mapping.

Regards

Albin I

 

 

v1101作成者
Level 5
January 6, 2021
@albinis1 - Thanks for your inputs. I tried with sling:internalRedirect. Can you tell me how to check HTTPS traffic or X-Firwarded header? Also what property should I use it for the headers?
Kiran_Vedantam
Community Advisor
Community Advisor
January 6, 2021

Hi @v1101,

 

1. In your sling:internalRedirect, I think you have missed the "/". Please add it and try again.

2. In general, we add the sling:Mapping node in sling:Folder node which holds the domain name.

 

Hope this helps.

 

Thanks,

Kiran Vedantam.