Code:
add_action('template_redirect', 'custom_redirect_url');
function custom_redirect_url() {
if(is_home() ) {
wp_redirect('http://google.ca');
exit();
}
}
this example here would redirect the main domain
you would just have to adapt your function (the redir algorithm or how often into this)
this would go in your functions file