Skip to content

Instantly share code, notes, and snippets.

@ITfee
Last active February 9, 2016 14:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ITfee/19b8d1efd2776397e2e2 to your computer and use it in GitHub Desktop.
Save ITfee/19b8d1efd2776397e2e2 to your computer and use it in GitHub Desktop.
Redirect Subdirectory to Subdomain on Windows Webserver
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rewrite to http://sub.mydomain.de/" stopProcessing="true">
<match url="subdirectory/" />
<action type="Redirect" url="http://sub.mydomain.de" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment