Skip to content

Instantly share code, notes, and snippets.

@totten
Last active December 30, 2016 23:42
Show Gist options
  • Save totten/9d32b1045706cf00dbdc7efec9403d99 to your computer and use it in GitHub Desktop.
Save totten/9d32b1045706cf00dbdc7efec9403d99 to your computer and use it in GitHub Desktop.
## In the Apache vhost
<VirtualHost *:80>
RewriteEngine on
RewriteMap crmdoc2mkdoc "/Users/totten/buildkit/build/dmaster/tmp/rewrite-map.txt"
</VirtualHost>
<IfModule mod_rewrite.c>
RewriteEngine on
## Depend on vhost config: RewriteMap crmdoc2mkdoc "rewrite-map.txt"
RewriteCond ${crmdoc2mkdoc:$1} >""
RewriteRule "^tmp/confluence/display/CRMDOC/(.*)" "https://docs.civicrm.org/dev/en/master/${crmdoc2mkdoc:$1}" [R,L,NE]
</IfModule>
### This files comes from https://github.com/civicrm/civicrm-dev-docs/
### Each row maps from a CRMDOC-path to a mkdocs-path.
Resource+Reference extend
Region+Reference api/params/#optionsmatch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment