add_rewrite_rule fro html to another url not working

1 week ago 19

I privation to redirect mywebsite.com/anyname.html to mywebsite.com/product/anyname For that I constitute the pursuing query successful functions.php . But it is not moving . Please spot my codification below

function custom_rewrite_basic() { add_rewrite_rule('^(.*)\.html$', '/product/$1'); } add_action('init', 'custom_rewrite_basic');

Please assistance to lick the issue.

Read Entire Article

Our Ventures