<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN"
    "http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd">

<urlrewrite>

  <rule>
    <note>Forward deprecated domains nomenclature to current spaces nomenclature</note>
    <from>/domains/</from>
    <!-- Note that this is a server side forward for now, this should get changed to an HTTP 301 at some stage -->
    <to type="forward">/spaces/</to>
  </rule>

</urlrewrite>

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 4.0//EN"
    "http://www.tuckey.org/res/dtds/urlrewrite4.0.dtd">

<urlrewrite>

  <rule>
    <note>Forward deprecated domains nomenclature to current spaces nomenclature</note>
    <!--
      Only match on URLs that start with /domains, since other URLs that contain domains
      are not exposed to non-root clients.
    -->
    <from>^/domains/</from>
    <!-- Note that this is a server side forward for now, this should get changed to an HTTP 301 at some stage -->
    <to type="forward">/spaces/</to>
  </rule>

</urlrewrite>

Make sure that only domain scoped APIs get re-written for now
Make sure that only domain scoped APIs get re-written for now
