Vanity URLs: a lot of them may turn to a performance problem?
Hi all.
I need to have different products exposed in a format like the following:
/products/<code>.html
Products are stored on repository with this format:
/products/<code_letter1>/<code_letter2>/<code_letter3>/<code>
We don't want to have the 3 extra paths in the final URL.
So first idea would be to define a vanity URL for every product. Having up to 10.000 products I mind if this can be a performance issue.
Then... is there a smarter approach, for example some sling mapping rule that can convert an incoming URL in the format /products/code.html in ---> products/c/o/d/code?
Clearaly also generated URLs should be rewritten with the same rule, but this can be handled at application layer if necessary,
We are using CQ 5.6.1
Any help will be appreciated.
thanks
Ignazio