Is it possible to import /convert the .htaccess file to web.config using command line ( NOT using GUI) and how ?

If it is not directly possible is there any workaround for this ?

note : http://learn.iis.net/page.aspx/470/importing-apache-modrewrite-rules/ here is the way to do it using IIS GUI ,which I cant do.

Thanks, Sourabh


I'm not aware of an import tool from the command line.

What's the reason why you can't do this from the IIS GUI? If you don't have access to the server with the GUI, you can perform the import on another computer ... for example your workstation, or grab a machine for an hour from Vaasnet.

Once you have them imported then you can xcopy the config to the server.

  • Repeating the clear+import+apply process during dev/testing brings on a kind of mental RSI. This is why scripts are good and GUIs are not. – Deebster Nov 20 '13 at 15:08


It looks like this tool should allow you to automate the configuration of URL Rewrite 2.0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.