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

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -