Fix redirect infinite loop
Fix subdomain redirect
Merge pull request #1 from nim1989/master

Fix redirect infinite loop