ignore .idea directory
support https and 301 redirects in imports. fixes #1103