Home > Net >  Which way is best for defining URL Redirect Web.config or in IIS?
Which way is best for defining URL Redirect Web.config or in IIS?

Time:09-17

I need to define URL redirect for my website so after search on google, I found two ways to do this. One way is to define the redirect rule in web.config file and the other is to create a rule in IIS. Now my question is, is there any difference between these two approaches? If yes then which approach is better?

If anyone knows please suggest. Thanks in advance.

CodePudding user response:

There is no difference between the two methods. If you create a rewrite rule in the IIS panel, it will also be displayed in the web.config. If you create a rewrite rule in web.config, you can also see it in the IIS panel. In other words, no matter which method you use to create rewrite rules, their effects are the same.

  • Related