Well yes, the first example is my own home country. In the Netherlands the court and king are in The Hague while the capital is Amsterdam.
A similar case would be France during the AnciƩn Regime. The court was in Versailles while the capital was Paris.