add middleware to redirect non www to www