Add .idea and .DS_Store to gitignore
Add support for "redirects"

I think the "redirects" property was forgotten.
This adds the functionality