Redirect more intelligently to prevent redirect loops
Merge pull request #221 from adicu/redirect

Redirect more intelligently to prevent redirect loops