I see the problem: [anything] after the website domain is redirected to profile/[anything]. Imagine running that redirect repeatedly. It will keep on adding "profile" to the beginning. To stop it, you have to make sure the URL after the domain doesn't start with "profile", otherwise you're in danger of a loop.