religion can give a solid basis to morality , but only when the religion is treated as a abstract concept and not asked to work in the real world with real human beings .... no religion seems to survive first contact with people and how the world works .
firstly any religion is admimistered by human beings , .. now when that number is very small , all can agree and work to a comman goal and by the same moral code . Let the number of people rise and you will get different understandings and different weightings of the moral code .. this applys to any organisation not just religion .
Thus it seems as long as we can keep people out of religions then the moral codes of those religions can be fixed and used as a solid basis for a global morality .
the next problem is how to operate the moral code in the real world ....
take the basic.. thou shall not kill ...now look at it in the real world and think of how many exception you can add to it .