Redirect to root (convert htaccess code to web.config)

I need a help!

I need convert my htaccess code to web.config code.

this is the htaccess code:

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\\ /index\\.php\\ HTTP/
RewriteRule ^index\\.php$ [R=301,L]

What web hosting solution you have?
What is server configuration and setup?

I suppose you need to contact your web hosting provider if you would like to get any answer faster. Good luck

If you want install redirect on the side of the server you’d better contact your web host and ask to do that. Or you are web hosting provider?

What for? I believe your htaccess file will work great.