Search code examples
iisurl-rewrite-modulewindows-server-2019

URL redirect when accessing domain


is the first time I'm using IIS (Windows Server 2019) and I'm looking for a configuration to be able to redirect clients from http://mysiteExample.org/ to http://mysiteExample.org/embed.html?key=val. I considered that URL Rewrite Module could help me to achieve this (as is not necessary for the clients to see the new URL they'll be redirected to). I made the configuration as shown in this screenshot, where I set '^$' as a pattern to specify this should apply for cases where no URL string is provided.

Could somebody with more experience advise me on how to achieve what specified above?

Thanks in advance


Solution

  • I finally managed to make it work changing the action type from 'Rewrite' to 'Redirect'.