INFRA-230 Allow redirects from wiki.civicrm.org to docs.civicrm.org
The aim to facilitate migration of content from the wiki to mkdocs -- as soon as a page is approved in mkdocs, we would replace the old page in the wiki with a redirect. Proposed workflow:
- Someone decides to migrate a page.
- He adds the new page or section to his branch ("docs/myfile.md")
- He adds a new redirect rule to his branch ("redirects/wiki-crmdoc.txt")
- He submits PR
- PR is reviewed and merged
- wiki.civicrm.org pulls latest version of civicrm-dev-docs.git. The new redirect rule goes live. Requests for certain wiki pages now redirect to book.
As a proof-of-concept, I wrote this Apache config which allowed mapping paths from a file: https://gist.github.com/totten/9d32b1045706cf00dbdc7efec9403d99
Subtasks:
- Add rewrite file to {{civicrm-dev-docs.git}}
- Add usage instructions to {{civicrm-dev-docs.git}}
- Deploy Apache config on {{wiki.civicrm.org}} (java-prod)
- Setup a monitoring rule to ensure the redirects continue to work