If you think that it is not a medical problem that is causing him to do it, go back to potty training him as you did when he was a pup. Don't give him the opportunity to go inside, it seems odd that he would start going in the house after being potty trained for months.