using custom permalinks redirecting posts to root

I am new to wordpress
My blog url is like www.example.com/blog
my posts url is like https://www.example.com/blog/?cat=189 and permalinks are set as plain , I want it to be https://www.example.com/post-name
If i change permalinks to use custom with /%postname%/, it redirects my posts to root

Any guidance please how I can achieve it

Thanks

Read more here: using custom permalinks redirecting posts to root

Leave a Reply

Your email address will not be published. Required fields are marked *