php - Wordpress redirect post_id urls to full post url -


i using wordpress on website, using permalinks like

site.com/%post_id%/%postname%/ 

if visitor visit site.com/%post_id%/ not redirect full post url.

i have no idea how can that.

edit: using nginx

try ?p=%post_id%

why use post_id , postname ? why not postname this: site.com/custom/%postname% ?


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

json - ORA-06502: PL/SQL: numeric or value error: character string buffer too small - Convert Clob to varchar2 -

ios - Swift Array Resetting Itself -