Buddypress and permalinks

I have the main site http://nighoutradio.com has the buddypress intergreated when I clickon profile it goes to the profile page. Yeah I worked hard to get this template intergrated.

but when I go to the template site.

http://nightoutradio.com/template and go to profile it gives me a 404 error. I think its something to do with the permalinks. Any suggestions?