Browse Source

auto redirect Xenko into Stride for 4.0+ doc

Virgile Bello 5 years ago
parent
commit
176ae15c01
1 changed files with 9 additions and 0 deletions
  1. 9 0
      build/web.config

+ 9 - 0
build/web.config

@@ -26,6 +26,15 @@
             <add input="{R:1}" pattern="^(en|jp)(/|$)" negate="true" />
           </conditions>
           <action type="Redirect" url="latest/en/{R:1}" redirectType="Found"/>
+        </rule>
+		<!-- Rename Xenko to Stride for 4.0+ and latest -->
+        <rule name="Redirect uppercase Xenko to Stride for 4.0+">
+          <match url="(([4-9]|[1-9]\d+)\.\d*|latest)/(.*)(Xenko)(.*)" />
+          <action type="Redirect" redirectType="Permanent" url="{R:1}/{R:3}Stride{R:5}" />
+        </rule>
+        <rule name="Redirect lowercase xenko to stride for 4.0+">
+          <match url="(([4-9]|[1-9]\d+)\.\d*|latest)/(.*)(xenko)(.*)" />
+          <action type="Redirect" redirectType="Permanent" url="{R:1}/{R:3}stride{R:5}" />
         </rule>
         <!-- Update this rule when there is a new Xenko doc version released -->
         <rule name="Rewrite URL for latest documentation">