Expand my Community achievements bar.

SOLVED

How to control multiple 301 redirects??

Avatar

Level 9

Hi All,

We are observing there are multiple 301 requests are going to when we request for a page.

For our application when i request www.xxxx.com/uk ,it's redirecting to www.xxxx.com/uk/, www.xxxx.com/uk.html and finally redirecting to actual required page URL www.xxxx.com/uk/en.html

How to avoid this kind of situation and redirecting to required/actual page.

Thanks,

Kishore

1 Accepted Solution

Avatar

Correct answer by
Administrator

+1 with Jitendra.

Why have we implemented it in this fashion?

Reference Link:- http://aem.matelli.org/url-mapping-and-deep-linking/ (Read sling:Mapping Redirects).

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

View solution in original post

3 Replies

Avatar

Level 9

Well, The question is why have you done like this?. Have you set the same mapping in etc/map as well? I think this can be fixed by right apache re-write rules.

Regards,

Jitendra

Avatar

Correct answer by
Administrator

+1 with Jitendra.

Why have we implemented it in this fashion?

Reference Link:- http://aem.matelli.org/url-mapping-and-deep-linking/ (Read sling:Mapping Redirects).

 

Thanks and Regards

Kautuk Sahni



Kautuk Sahni

Avatar

Level 9

Not sure about current implementation but seeing there is a lag when redirecting to actual page.