how to redirect from /tegory%/%postname%/ to /%postname%/ for all blog posts

  • hello there, i am enjoying using Rankmath and it has been quite helpful. now can you please tell me how can i redirect from /%category%/%postname%/ to /%postname%/ for all blog posts with one code.

    thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • I tried this one below but it doesn’t work.

    Source URLs: ^/category-slug/(.*)$
    Type: Regex
    Destination URL: http://yourdomain.com/$1

    Hi,

    Thanks for getting in touch with us.

    Please set it up like this:
    Source URLs: category-slug/(.*)$
    Type: Regex
    Destination URL: $1

    You must change category-slug to each category on your website.

    Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘how to redirect from /tegory%/%postname%/ to /%postname%/ for all blog posts’ is closed to new replies.