• Resolved Esteban88

    (@esteban88)


    Hi, great plugin. I have a problem, I made a redirection 301 because I deleted two custom post types, I want to remove the urls that contain the words “audios” and “videos” example miweb.com/video/post-name to miweb.com/post-name

    I made it with this: /videos/(.*) to miweb.com/$1

    But the problem is that I have a category with the same name “videos” then the url miweb.com/videos redirects to the main page of the site

    How to make redirect only the posts of the CPT and not the page of archives of the category?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author John Godley

    (@johnny5)

    You can modify the regex to specifically require more than 1 character. For example:

    /videos/(.{1,})

    Thread Starter Esteban88

    (@esteban88)

    Working! thanks ??

    • This reply was modified 7 years ago by Esteban88.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom post types regular expressions’ is closed to new replies.