You can try to uninstall iis and then reinstall iis and url rewrite module.
Uninstall IIS:
- Open 'Server Manager' and click 'IIS'.
- Click 'Manage' in the upper right corner -> remove roles and functions.
- Click 'Next' to cancel the '√' in front of IIS and select 'Remove Features'
- Continue to 'Next' and click 'Delete'
- When the deletion is complete, click 'Close'. Restart the server to take effect.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment". Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.