Tom Hanks and Rita Wilson have been nearly inseparable during an August getaway at their home on the Greek island of Antiparos. But just weeks prior, things weren’t so rosy.

In Touch has exclusively learned that the couple, married for 26 years, temporarily split for a month.

“They hit a rough patch. They were leading separate lives,” a friend exclusively tells In Touch, revealing that for a month, Rita lived alone in their $26 million modern mansion in Pacific Palisades while her husband stayed at a producer pal’s home in tony Malibu Colony before leaving to film his new movie, A Hologram for the King, in Egypt.

rita and tom

“Although they attended social functions and walked their dog together,” a source says of the pair, “they were living in separate residences.”

According to the friend, “they just weren’t seeing eye to eye.” But the couple survived their temporary split by refusing to give up. “Tom and Rita are not just husband and wife, they are best friends. It will take a lot to split this couple up for good.”

See the GIFs: Tom Hanks Dances to ‘This Is How We Do It’ While Dressed as a Rabbi — And Justin Bieber Records the Whole Thing! Plus 5 More Stars Caught in the Act!

When asked about the separation, reps for both stars declined to comment.

For the full story on how Tom and Rita survived their temporary split, pick up the new issue of In Touch, on newsstands now.

Have a tip? Send it to us! Email In Touch at contact@intouchweekly.com.