Use pretty URLs and fix server address bug while sending messages