Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 : here is the way to do it using IIS GUI ,which I cant do.

Thanks, Sourabh

share|improve this question

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.

share|improve this answer
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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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