sreenu539
02-10-2020
Hi,
I know Out of the box AEM "redirectTarget" page property does "302" redirect. I am really not sure how AEM doing internally.
Client requirement is to have option for both "301" and "302".
I saw following as options ( more solutions and best solutions are welcome)
http://www.sgaemsolutions.com/2018/
http://adobeaemtips.blogspot.com/2017/10/aem-page-redirect-sling-model.html
Please let me know, if these are needed or does AEM 6.5 will take care of redirect status if I have "redirectStatus page property value as "301" or "302" or any other solutions.
Thanks,
Sri
Ravi_Pampana
MVP
We can handle easily at dispatcher level by passing R=301 to the redirect rules.
Ex:
RewriteRule (.*)$ https://%{SERVER_NAME}$1/ [R=301,QSA,L]
RewriteRule ^/test.html /test.html#anchor [NE,R=301,L]