Hello @colino !
Glad to hear about your migration to RStudio Connect - hopefully Connect will help a lot in the long term.
Unfortunately, in the short term, this is a feature request for RStudio Connect as there is no real method for setting the redirects you are discussing in RStudio Connect. The "HttpRedirect" setting is designed to upgrade HTTP requests to HTTPS, not perform arbitrary redirection of paths.
However, RStudio Connect does have vanity URLs, which I imagine you have seen: https://docs.rstudio.com/connect/admin/content-management.html#vanity-paths
Unfortunately, this does not help with backwards compatibility, so a couple of options:
- leave Shiny Server in place at the old domain and set redirects to RStudio Connect on a new domain
- create "placeholder" content on RStudio Connect at the "old" vanity URLs / path with links to the "new" location.
- use an nginx, apache, or other reverse proxy in front of your services to get supreme control over path routing
The first is a very short term solution (you don't want to maintain Shiny Server Pro just for backwards compatibility of paths). The second is the simplest solution that involves only RStudio Connect. And the third is the most complex, but also the most flexible.
On the second, if you choose to go that direction, you can even build HTML documents that force a path redirect.
For instance, you would publish a HTML document to Connect with vanity path domain.org/oldURL and have it redirect to domain.org/newURL. Note that this solution will only work for paths below the "root" of the Connect server. For more flexible path routing, you will unfortunately need a reverse proxy (option 3).
In the meantime, I will definitely submit your feedback for consideration and discussion internally! Do you have questions about the above?