Custom setting to determine "root URL"

yes we are. The tricky bit is that in the Community Portal we need to subsitute the “Apex” bit with “Community Name”. I don’t think it would be a problem if we only had one community…