simpleS middleware to redirect connections