You can file for divorce in the county:
- Where the defendant lives;
- If the defendant resides outside of the state, where the plaintiff resides;
- Where the parties lived prior to separation and where the plaintiff has continuously resided in the county;
- Prior to six months after the date of final separation and with agreement of the defendant, where the plaintiff resides or, if neither party continues to reside in the county of matrimonial domicile, where either party resides
- After six months after the date of final separation, where either party resides.
23 Pa.C.S.A. § 3301(a); 23 Pa.C.S.A. § 3301(b)-(e); 23 Pa.C.S.A. § 3104(b)