Should we configure etc/map in an author instance?
The site we are building has two features that demands us to create the final URL for some pages in author time. One is the automatic creation of a shortened URL (e.g. goo.gl) and the other is an integration with an indexing tool which needs to know the final URL. The final URL is determined using some rewrite and redirect rules, currently configured in etc/map.
That being said, it seemed natural for us to have the redirect rules (i.e. etc/map configuration) applied to the author instance, so the two features I mention could reuse the rules when the preprocessor actually creates the final URLs. Here I already have a question: is it common to have those rules applied in the author instance? Talking to some colleagues I realized that generally they do not have this need. Assuming that can be done, we realized that the same rules should be slightly different from author and publish, once they are based on different domains (domains are important since our instances run multiple domains sites). The second question is then: how natural it is to have rules segregated by publish/author, in the same codebase?
Finally, if all of this seems unnatural, what would be the recommended way to implement the same features, without replicating the rewrite rules?
Thank you and happy Friday!
