How to rewrite URL and make resourceresolver to resolve it.
We have a specific requirement where we have to mask /en/us/ from browser URL and replace it with /. For Example: if the link that is requested from server is http://localhost /content/category/en/us/
We do not want to use Vanity URL as that would be page specific and we are looking for a generic solution to this. We were thinking of taking the approach of stripping out /en/us/ at the dispatcher level and then doing the mapping through Sling Resolver configuration or in /etc/map. Is that a good solution? One problem with this approach is that if tomorrow we have to support /de/us/ then how would it be mapped by Sling Resolver to /de/us. What are the available solutions for achieving this?