How can I convert .htaccess file to web.config file?

Programming, error messages and sample code > IIS Rewrite
When you have your url rewrite in your htaccess file, you should convert the code to a web.config file as our windows system does not support htaccess file.

You can use this online tool to convert the htaccess file to web.config, and then copy the code into the <system.webServer> element of your web.config file.