Vanity URLs x Dispatcher
Hi, gentlemen.
I have the following scenrio:
- The website has hundreds of pages, and each of them need a vanity URL. This is because the content structure on AEM does not match the expected end URLs (eg.: on content tree the page will be at /content/<site>/<lang>/<product type>/<country>/<state>/<city>/<page> while the URL will be /<city>/<page> or even /<marketing-stuff>/<another-page-name>).
- Those vanities must not contain extension (eg.: .html).
This scenario leads me to two problems that I'd like to ask for your help or advice:
- As I'll have new vanities each day, following the recommendation on http://dev.day.com/docs/en/cq/current/deploying/dispatcher/disp_config.html that states "depending on how restrictive your filter configuration is, you may need to explicitly register each individual vanity URL. In the following example /my/vanity/url" is not an option for me.
Instead of (on the dispatcher) deny access to all URLs for then granting access to what should be public (eg.: /content/, /etc/clientlib/, etc, AND vanity), I'll have to open access to everything and then deny to what is sensitive.
Do we have somewhere a list of what should be protected? Does this approach sound reasonable?
- The other problem is that I learned (by observation) that vanity'zed URLs are not cached by the dispatcher, what will be a huge problem on my scenario.
Is it really right? Did you ever take/seen an approach to cache pages? Do you have anything to suggest to solve this problem, even if it involves development?
Having something like a list of from/to URLs on Apache to redirect to the actual AEM URL is not an option too, because this set of vanities is very volatile: new pages will come and go every day.
Thanks a lot for your time and advice!