4) Add your own URL rewrite rules to the WEB-INFurlrewrite.xml that was created.

For my purposes, I was migrating from dokuwiki to Confluence. My old doc site running on dokuwiki was docs.mydomain.com but I wanted to move it to archives.mydomain.com and use the docs.mydomain.com URL for my new Confluence site.

For special characters like “.” or “:” or “?” I had to use a back slash (“”) in front of the special character — see below for an example.