This may be impossible, but I am wondering if anyone knows if there is a way to try loading an .htaccess file, and if it causes issues on the site then revert to a backup .htaccess file? Same goes for the wp-config.php file.
EDIT: I have a custom plugin that adds snippets to my .htaccess and wp-config.php. My wish is to try the update, and if it fails, then revert back to the original. I am aware that I can manually revert via FTP, etc. I am looking for a possible solution to do this with a try catch or something. Maybe try catch the function that loads these files? If one exists?