Page template that redirects user based on role

You can use current_user_can() to check the user roles. https://developer.wordpress.org/reference/functions/current_user_can/

To check if the user is editor or administrator:

<?php if( current_user_can('editor') || current_user_can('administrator') ) {  ?>
    // Stuff here for administrators or editors
<?php } ?>

Then to redirect you can use this:

header('Location: '.$newURL);