Created
July 8, 2017 04:06
-
-
Save malkafly/3b18374c11039f316ce4342ab43f7347 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<configuration> | |
<system.webServer> | |
<staticContent> | |
<mimeMap fileExtension="woff" mimeType="application/font-woff" /> | |
<mimeMap fileExtension="woff2" mimeType="application/font-woff" /> | |
</staticContent> | |
<rewrite> | |
<rules> | |
<!-- Simulador --> | |
<rule name="RemoveSimulador" stopProcessing="true"> | |
<match url="^simulador$|^simulador/(.*)$" /> | |
<conditions> | |
</conditions> | |
<action type="Redirect" url="{R:1}" /> | |
</rule> | |
<rule name="RewriteSimulador"> | |
<match url="^(?!simulador/)(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^simulador\.arquitecasa\.com\.br$" /> | |
<add input="{PATH_INFO}" pattern="^/simulador/" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="simulador/{R:1}" /> | |
</rule> | |
<!-- Profissional --> | |
<rule name="RemoveProfissional" stopProcessing="true"> | |
<match url="^profissional$|^profissional/(.*)$" /> | |
<conditions> | |
</conditions> | |
<action type="Redirect" url="{R:1}" /> | |
</rule> | |
<rule name="RewriteProfissional"> | |
<match url="^(?!profissional/)(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^pro\.arquitecasa\.com\.br$" /> | |
<add input="{PATH_INFO}" pattern="^/profissional/" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="profissional/{R:1}" /> | |
</rule> | |
<!-- Api --> | |
<rule name="RemoveApi" stopProcessing="true"> | |
<match url="^api$|^api/(.*)$" /> | |
<conditions> | |
</conditions> | |
<action type="Redirect" url="{R:1}" /> | |
</rule> | |
<rule name="RewriteApi"> | |
<match url="^(?!api/)(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^api\.arquitecasa\.com\.br$" /> | |
<add input="{PATH_INFO}" pattern="^/api/" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="api/{R:1}" /> | |
</rule> | |
<!-- Static --> | |
<rule name="RemoveStatic" stopProcessing="true"> | |
<match url="^static$|^static/(.*)$" /> | |
<conditions> | |
</conditions> | |
<action type="Redirect" url="{R:1}" /> | |
</rule> | |
<rule name="RewriteStatic"> | |
<match url="^(?!static/)(.*)" /> | |
<conditions> | |
<add input="{HTTP_HOST}" pattern="^static\.arquitecasa\.com\.br$" /> | |
<add input="{PATH_INFO}" pattern="^/static/" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="estatico/{R:1}" /> | |
</rule> | |
<!-- Wordpress --> | |
<rule name="WordPress: http://arquitecasa.azurewebsites.net" patternSyntax="Wildcard"> | |
<match url="*" /> | |
<conditions> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.php" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment