URL Rewrite does not work on IIS website.
Rewrite module is not enabled in IIS.
- Open IIS Manager > Server > Modules > Configure Native Modules
- In the list, select RewriteModule and click OK
The Rewrite module can be enabled for each individual site by following the same steps on site level in IIS Manager.