Please break the long lines in your code so that it can
be read easier.

Also, what specifically do you mean reconfigure between sites?
What do you want to change?
Do you mean an Active Directory site or some other type of site?
What version of KiXtart are you using?
What client types are there?