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 -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -