Search Custom Post Type & Taxonomies

For now I’ve just redirected the default search string (www.sitedomain.com/?s=keyword) to www.sitedomain.com/trade/keyword, (trade is my custom taxonomy) although I’m pretty sure this isn’t the correct or best way to do it so it’d be great if someone else has a better solution. Here is the code for redirecting the search string:

function redirect_search() {
    if ( is_search() && ! empty( $_GET['s'] ) ) {
        wp_redirect( home_url( "/trade/" ) . urlencode( get_query_var( 's' ) ) );
        exit();
    }
} add_action( 'template_redirect', 'redirect_search' );