• Is there a way to redirect blog post to the permalinks if visitors access the blog post from the blog post id url?

    For example, the blog post url is http://www.cscc.org.sg/living-testimonies/5361.

    When someone access it, it should redirect to its permalinks: http://www.cscc.org.sg/living-testimonies/stomach-pain-healed

    Thanks

    • This topic was modified 6 years, 8 months ago by Jan Dembowski.
    • This topic was modified 6 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress from Developing with WordPress

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • The two URLs you gave are for two different pages. Nothing to fix there.

    As for the URL with 5361 at the end, chances are the page was initially published without a title. So WordPress used the post ID as the slug.

    To fix this, just edit the page, remove the existing slug (5361) and re-publish (update) it. The post title will automatically be used as the new slug.

Viewing 1 replies (of 1 total)
  • The topic ‘Redirect wp post id url to permalinks’ is closed to new replies.