On IIS, stop WordPress from resaving my web.config file when I enter the Permalinks config page

You can prevent a “hard” flush, which updates .htaccess (Apache) or web.config (IIS), with the flush_rewrite_rules_hard filter. We can also use the __return_false helper function here. add_filter( ‘flush_rewrite_rules_hard’, ‘__return_false’ ); This code can be placed in your own plugin or a theme’s functions.php file.

URL problem in my site

Use the duplicator plugin. It basically make a snapshot and an Installer.php file. When moving the archive snapshot zip and php file to your new server, you navigate to http://yoursite.com/Installer.php. It’s like a setup process that asks you for your new database (you can point it to an empty database) and what the new URL … Read more