fix https redirect issue

* any http traffic will automatically redirect to
  the index page using https