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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -