Hi, we have a requirement so that site/folder names are removed from generated URL's (as well as removing the .page extension for pages).
Like many other implementations, a number of different sites are provided per branch and these sites have their own domain names. So currently we'll have for example:
www.examplesite1.com/example1/index.page
www.examplesite2.com/example2/index.page
We want this to be:
www.examplesite1.com/index
www.examplesite2.com/index
We sit Apache in front of LSDS as a reverse proxy and I'm completely comfourtable configuring incoming URL's for each host to proxy/rewrite to the correct location.
Links generated from content is what I'm concerned about. Another colleague (who's left the company) previously wrote a custom page token for links and that gives us the ability to write rules which do regex matches/replaces on certain types of links using bean configuration. For example in preview we can render different URLs.
All of these rules currently use the $PAGE_LINK token as part of the regex replace, however I figure I can instead use $URL_PREFIX instead for my new rules which appears to generate the desired URL i.e. no site/folder name and no .page extension.
It also means I can choose to keep using $PAGE_LINK in preview so that links will work correctly in preview.
I don't see any issues with this, can anyone else?