I have one problem about the redirecting I want to make redirect to example.com/12321.html to example.com?p=12321.
I was user before url typle like first number things after this i change my system to seo url with content name to url. Now i guest best system to redirect to ?p=
What I Try
First i try to change that on .htaccess not working i use this code
RewriteEngine On
RewriteRule "^([0-9]+)+[^.html]" "https://www.example.com?p=$1"
Than I thing to make that with nginx write this code on nginx server block
rewrite ^([0-9]+)+[^.html] https://www.example.com/$1 redirect;
I don't understant that is why not working, I check it already on https://regex101.com/r/pimHGN/1 showing working there.