Redirect old posts urls to new without the slug, but with same titles

  • Unknown's avatar

    Hi

    I am trying to do this redirect but only works when I go to the new post first and then try it again. But get 404 first time.

    Want to redirect Old URL:
    site.com/post/115327974047/blazer-topman

    to New URL:
    site.com/blazer-topman

    What I have tried is:
    RedirectMatch 301 /post/d+/(.*)/ /$1

    It’s driving me nuts

    Thanks all

  • The topic ‘Redirect old posts urls to new without the slug, but with same titles’ is closed to new replies.