You could put them in crates, but if they’re not used to being in a crate, they will howl, whine, bark and try to chew their way out of it, until they drive you nuts! lol.
Put the dogs outside with doggie houses. You may need to chain them by their dog house, otherwise they will be scratching your door down at night! But they will be fine.
Your vet can prescribe them tranquilizers if they bark constantly and disturb your neighbors.
Get them used to living outside, spend time outside with them, read a book outside while they play. Give them the idea that outside is safe and has comforts also. Give them chew toys, but most importantly, get the dogs used to relieving themselves outside in the grass.
Your rugs texture may appear as grass to them.
Keep chew bones and treats on your rugs to stop them from wanting to relieve them self where they are eating and snacking.
Allow them inside for short visits only when you’re home with them. You can have a dozen short visits in one day ranging from 15 minutes to 45 minute visits. But don’t let them in overnight yet, unless one of your dogs is not relieving itself in your house, then allow that “potty trained dog” inside at night. It’s usually the dominant dogs that tend to relieve themselves inside the home, even though they know they are wrong to do it.
Keeping them outside retrains them to know, rain or shine, their bathroom is outside.
When you allow them short ‘visits’ inside, they will be humbled to come inside. They’ll be reminded of all the comforts there is to being inside. Mostly, these visits shows them their acceptance into the “pack”, that you still love them and they thrive for your attention. Other comforts are the soft rugs, no rain, snacks, toys and they become more playful inside.
Use this reward of short inside visits to your advantage. Let them differentiate between the comforts inside and that their bathroom is outside.
You will need to train them to respect your home, and continue to remind them to go outside to use the bathroom; especially when it’s raining. If they fear the rain play or walk with them in the rain or garden sprinkler so they will get used to being wet. Make sure they have a warm bed to lay down inside if they come in wet. Old dogs get arthritis and hurt just like old people.
In time, they will appreciate your home and respect it when you gradually allow them back in as indoor dogs again.