How to do domain redirection through web.config

0

I would like to redirect URL through web.config

by .htaccess the code looks like this:

<IfModule mod_rewrite.c>
   RewriteEngine On
   RewriteCond %{HTTP_HOST} ^dominio.com.br$ [OR]
   RewriteCond %{HTTP_HOST} ^www.dominio.com.br$
   RewriteRule (.*)$ http://outrodominio.com.br/en [R=301,L]
</IfModule>

I would like to know a way to do this on an IIS server

    
asked by anonymous 13.11.2018 / 19:38

0 answers