Site icon Hip-Hop Website Design and Development

Customized taxonomy Rewrite Rule

I need my taxonomy url to be like this: web site.com/web page/taxonomy_term

How will I have the ability to obtain this? I’ve written a wordpress rewrite rule code in my features.php like this:

operate sphere_custom_rewrite_rules( $guidelines ){
    $newrules['(.+?)/([^/]*)/?'] = 'index.php?pagename=$matches[1]&positive_sphere=$matches[2]';
    $newrules['(.+?)/([^/]*)/?'] = 'index.php?pagename=$matches[1]&negative_sphere=$matches[2]';

    return $newrules + $guidelines;
}
add_filter('rewrite_rules_array', 'sphere_custom_rewrite_rules');

the web page would not return 404 error, but it surely would not do my features in taxonomy.php as a substitute it is doing my code on my template-page-name.php file. What I need is once I sorts this url:

web site.com/web page/taxonomy_term it will run my code on taxonomy.php.

Any assist can be drastically appreciated! Thanks.