Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I renamed a folder on the site and created new folder with the new name for seo reasons. I would like to redirect all content to the new folder, What should I write in the web.config file?

I already use redirect for specific files and it works for me.

<httpRedirect enabled="true" exactDestination="true"  httpResponseStatus="Permanent">
    <add wildcard="/example/lon/2.htm" destination="/Pro/London/1.htm" />

I don't understand which approach should I take: url rewrite rules and or with http redirection.

share|improve this question
This has been answered on StackOverflow... stackoverflow.com/questions/4188663/… –  Ben Campbell Nov 10 '11 at 10:12
Ok, now I know that I need to use url rewrite. can someone write me the code for redirecting from one folder to another? –  Irena Nov 10 '11 at 11:54

Your Answer


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

Browse other questions tagged or ask your own question.