how to correct page slug and redirect URI (1 post)

  1. Radja
    Posted 7 years ago #

    Is there any way how to correct / redirect incorrectly transfered page slugs in URI?

    i want to use in my WP permalinks like this:
    "http://web.com/12-my-page" (where 12 is Page ID) (permalinks structure: /%post_id%-%postname%/)

    but if I type "http://web.com/12" (ie. broken URI posted in forum) it returns 404 error.

    but if I use permalinks like "http://web.com/12/my-page" (permalinks structure: /%post_id%/%postname%/) instead, and I type "http://web.com/12/" it shows page "http://web.com/12/my-page" but URI stays "http://web.com/12/" - URI is not complete (= without page slug), but page is at least displayed..

    SO, Is there any way how to make WP redirect URIs "http://web.com/12" to "http://web.com/12-my-page" when using "http://web.com/12-my-page" (permalinks structure: /%post_id%-%postname%/)?

    I have tried plugin Redirection, but I have not find a way how to simply redirect http://web.com/%post_id% to my structure http://web.com/%post_id%-%postname%/ .

    thanks for any suggestions!

Topic Closed

This topic has been closed to new replies.

About this Topic