Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM 6.5 - Need clarification on externalizer/link checker/rewriter functionality working in OOTB we-retail pages.

Avatar

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct Reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile

Avatar
Validate 50
Level 6
cquser1
Level 6

Likes

75 likes

Total Posts

313 posts

Correct Reply

15 solutions
Top badges earned
Validate 50
Validate 25
Validate 10
Validate 1
Give Back 50
View profile
cquser1
Level 6

08-07-2019

Hi All,

We have set up 6.5 author and publish local machine.

On activation of page, for ex: http://localhost:4502/editor.html/content/we-retail/us/en/men.html and checking on publish

http://localhost:4503/content/we-retail/us/en/men.html for "Experience" section in footer, we see that "/content" is stripped off from

http://localhost:4503/we-retail/us/en/experience.html in publish.

Tried debugging multiple things to see how its working, but no luck.

Any thoughts/pointers on this will be helpful.

we-retail-publish.png

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Level 3
anujg3325839
Level 3

Likes

27 likes

Total Posts

26 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 3
anujg3325839
Level 3

Likes

27 likes

Total Posts

26 posts

Correct Reply

8 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
anujg3325839
Level 3

08-07-2019

You can check few links -

1-  http://blogs.adobe.com/contentmanagement/2013/08/20/how-to-change-aems-redirection-http-st atus-code/

//

Redirection of request URLs in AEM can be configured at the Sling level, typically in the mapping configuration under /etc/map node. Depending on the requirements, there are times when customers would like to change the default HTTP status code for redirection. And here you will find two ways of changing the status code:

The sling:status way

Documented in http://sling.apache.org/documentation/the-sling-engine/mappings-for-resource-resolution.ht ml already, you may use sling:status property to set a specific status code for a particular redirection. To extend the example given on the page linked above:

/etc/map
      +-- http
           +-- example.com.80
           |    +-- sling:redirect = "http://www.example.com/"
           |    +-- sling:status = "301"

Via OSGi configuration

Another way, which really sets the default for all redirection, is to configure the status code at the OSGi bundle level. In the OSGi console, browse the the Configuration page and locate:

“Apache Sling Resource Resolver Factory”

and change the redirect status field to whatever status code is appropriate (highlighted in diagram below).

[img]http://blogs.adobe.com/contentmanagement/files/2013/08/sling_redirection_status_code.png[/ img]

Another one can refer - http://aem-cq-tutorials.blogspot.in/2014/06/mapping-of-request-urls-in-cqaem.html

Hope it helps..

Thx, Anuj

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 5
Level 2
vijkumar
Level 2

Likes

15 likes

Total Posts

21 posts

Correct Reply

4 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile

Avatar
Give Back 5
Level 2
vijkumar
Level 2

Likes

15 likes

Total Posts

21 posts

Correct Reply

4 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Boost 5
Boost 3
View profile
vijkumar
Level 2

10-07-2019

In addition to that check 'url mapping' field in  'Apache Sling Resource Resolver Factory' configuration, there could be a mapping there leading to the behavior. But it would impact all the urls, not just experience. /Content will be stripped from all urls having /content. If it is happening just for specific url check /etc/map

Avatar

Avatar
Boost 5
Employee
Nisha_Nivedita
Employee

Likes

15 likes

Total Posts

26 posts

Correct Reply

8 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile

Avatar
Boost 5
Employee
Nisha_Nivedita
Employee

Likes

15 likes

Total Posts

26 posts

Correct Reply

8 solutions
Top badges earned
Boost 5
Boost 3
Boost 10
Boost 1
Applaud 5
View profile
Nisha_Nivedita
Employee

09-07-2019

cquser1​ For your query "

"/content" is stripped off from

http://localhost:4503/we-retail/us/en/experience.html in publish."

>> Did you check in etc/map or sling:internal redirect rules? it should be stripping off from there. Rewriter is responsible for such behavior , so check rewrite config.