Is there any way to dynamically redirect URLs. For example, I want to redirect any URL from https://example.com/NNNNN
to https://examplecom/?p=NNNNN
.
Where NNNNN
could be any possible numbers.
For example: https://example.com/1796
should redirect to https://example.com/?p=1796
.