Roger Montgomery said:
if i relocate my city the shield keep working or i lose it?
Relocating does not affect on the Inaccessibility.
But if you relocate your Town within the Dominion, remember that you cannot use Inaccessibility in the Forest of Ancients.
As Roger said.
REMEMBER: YOU WILL BE WARNED BEFORE SOME ACTION YOU DO WILL CAUSE YOUR SHIELD TO DROP.
It will -expire- silently, though.
If you are shielded and attack or espionage someone, it will warn you that doing so will drop shield - do you wish to proceed anyways?
- so you will know when your shield is going to drop (due to your deliberate action).
As does ***joining a raid*** - be aware of this. Apparently it is a frequent gotcha.
You can immediately re-raise your shield, but for at least a second or two, your shield will be down. So's y'know.
(Some attackers wait for precisely that moment.)
This is all discussed elsewhere in the forum(s), you may want to take a gander. And at the KaW FAQ page.
(The FAQ page is misnamed, it's actually a rather good how to play / game mechanics resource.)