Added optional redirection over to https if configured via maven