Custom Index 1.8 question

How can I make the custom index only for logged out users but once logged in, they are directed to the activity page? In other words activity page becomes their default index page as it is when you do not have custom index activated.