Redirect URL in IIS 7.5

5

When posting to the server (iis 7.5) the application:

Eu tenho isso     => http://meuip:8086
Mas preciso disso => http://meuip:8086/portal

When you create the directory in iis with the name "portal" and converted to an application, a url error is generated, because the font is not like this, url example in the source:

em JS:
 var url = "/Portaria/Recado/Listar";
em C#:
 action="~/Gerenciamento/UsuarioExterno/Cadastro/0"

In C # the redirect even works when created in iis a subdirectory, but css and js do not, since in the source the "/ portal /" does not exist.

    
asked by anonymous 04.05.2018 / 21:25

1 answer

4

1) Confirm that the redirection module is installed:

IntheEnglishversionthemoduleiscalledHttpRedirection.

2)OpenIIS,locatethemoduleHTTPRedirectunderthesiteanddirectorywhereyouwanttocreatetheredirect-inthiscase/portal:

3)EnterthenewURL.Optionallysetthestatuscodeto308-browserswillcachetheredirectinformationafterthefirstvisit.

    
04.05.2018 / 21:39