Use add_rewrite_rule()
.
function wpse325663_rewrite_resource_type() {
add_rewrite_rule('^resources\/(.+)/?', 'resources/?type=$matches[1]', 'top');
}
add_action('init', 'wpse325663_rewrite_resource_type');
An important note from the codex:
Do not forget to flush and regenerate the rewrite rules database after
modifying rules. From WordPress Administration Screens, Select
Settings -> Permalinks and just click Save Changes without any
changes.