added code to remove www from url in config