Redirects to main page on logout (refresh)

Whitelist certain pages but mostly redirect to main page when user is logged out