i need to rewrite a custom URL
i want to rewrite this url: example.com/ygal/1 to be pointed to: example.com/?vk_callback=1
add_rewrite_rule(‘^ygal/(d+)/’, ‘index.php?vk_callback=$matches’, ‘top’);
I have press on save setting in permalink page to refreshing the data but is not working is just redirect to home page. any idea please?