my posts have urls of two different types: one with post id and other with post slug:
i'm doing this using:
add_rewrite_rule( 'post/(\d+)/?', 'index.php?p=$matches', 'top' );
and setting up permalinks using %post_name%.
/post/my-post-slug open the same html page.
is it possible to make wordpress return the 301 redirect to
/post/my-post-slug when accessing