Hi @wahabraiz19
I think the best way is translate .htaccess content to IIS web.config, here a link about the use of the .htaccess file by PHP applications, and shows how to use the Web.config file for these same functions in IIS.
translate-htaccess-content-to-iis-webconfig.
If the answer is helpful, please click "Accept Answer" and upvote it.
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.