Expand my Community achievements bar.

URL mapping problem

Avatar

Level 2

Hi,
I need to redirect all URLs of the form http://localhost:4502/a/b/.../x/feed to http://localhost:4502/a/b/.../x.rss. How do I do this? I checked out this helpx Adobe link and this Apache Sling link and I still can't figure out how exactly to implement this. The mapping that I did was

Under /etc/map/http/regexmap(sling:Mapping), I created a sling:match property with the value ^[^/]+/[^/]+/feed$ and a sling:internalRedirect property with the value .rss . This mapping got reflected in the Apache Felix console as well, but doesn't seem to work as I want it to. Am I on the right track? Please help me.


Thanks
Shriram

0 Replies