When you have multiple websites and each of them maps the same physical path as virtual directory, how to quickly change the physical path of that virtual directory for all websites? Note: I don't want to do use IIS Manager. I tried changing the path (find and replace) in %SYSTEM%\system32\inetsrv\config\applicationHost.config, then restarted IIS, but the change hasn't taken effect. What am I missing?
When you edit applicationHost.config on x64 platform, make sure that you use 64bit version of your favourite text editor. If your editor is 32bit different version of a file will be changed. Later opening the same file with 32bit editor and 64bit editor will display different content.