Complex sentence: Anapa serves as the administrative center of Anapsky District; however, it is not administratively a part of it and is, together with three rural localities, incorporated separately.
Split into simpler sentences: Anapa serves as the administrative center of Anapsky District, although it is not administratively a part of it. Administratively, together with three rural localities, it is incorporated separately.