Created
September 4, 2017 14:56
-
-
Save nurycaroline/dde1c54f5aa2ce7177423d1fe9270a58 to your computer and use it in GitHub Desktop.
Configuração para reescrita de url IIS - Necessário instalação do IIS URL Rewrite
This file contains 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> | |
<rewrite> | |
<rules> | |
<rule name="ReactRouter Routes" stopProcessing="true"> | |
<match url=".*" /> | |
<conditions logicalGrouping="MatchAll"> | |
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> | |
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> | |
<add input="{REQUEST_URI}" pattern="^/(docs)" negate="true" /> | |
</conditions> | |
<action type="Rewrite" url="index.html" /> | |
</rule> | |
</rules> | |
</rewrite> | |
</system.webServer> | |
</configuration> |
Valeu, Nury!!!!
Você me salvou, tava ficando doido com isso, muito obrigado mesmo.
Me salvou tbm, valeuu!!
Funcionou perfeitamente. A única observação que no meu caso tive que colocar o web config na pasta public.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Caso alguém esteja querendo esse codigo em HTACCESS
RewriteRule .* index.html