Return to Snippet

Revision: 70361
at January 22, 2016 06:43 by augoisms


Updated Code
<?xml version="1.0"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
  		<rule name="Redirect subdomain" enabled="true" stopProcessing="true">
  			<match url="^(.*)$"/>
  			<conditions>
  				<add input="{HTTP_HOST}" pattern="^(.*)\.blt\.work$"/>
  			</conditions>
  			<action type="Rewrite" url="{C:1}/{R:0}"/>
  		</rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

Revision: 70360
at January 22, 2016 06:41 by augoisms


Initial Code
<?xml version="1.0"?>
<configuration>
  <system.webServer>
    <rewrite>
      <rules>
  		<rule name="Redirect subdomain" enabled="true" stopProcessing="true">
  			<match url="^(.*)$"/>
  			<conditions>
  				<add input="{HTTP_HOST}" pattern="^(.*)\.blt\.work$"/>
  			</conditions>
  			<action type="Rewrite" url="{C:1}/{R:0}"/>
  		</rule>
      </rules>
    </rewrite>
  </system.webServer>
</configuration>

Initial URL

                                

Initial Description
bessie.blt.work will point to blt.work/bessie

Initial Title
rewrite subdomain to point to sub directory

Initial Tags

                                

Initial Language
XML