2

I have to setup as redirect from "Date and Name" Format to "Post Name" Format. For example:

/2010/10/post-url/

it must be redirected to

/post-url/

I am using Yoast for redirect. I don't know what it can support but I have in mind that I should add:

^/([0-9]{4})/([0-9]{2})/(?!page/)(.+)$

but will yoast redirect support that? and what should be the "New URL"?

Please let me know you have experience on adding this kind of redirect on Yoast.

  • Does it have to be done with Yoast? It would be fairly easy to put a redirect rule for this into .htaccess. – Stephen Ostermiller Jul 6 '17 at 8:12
  • @StephenOstermiller it is true but I just want to know if that is applicable to Yoast Plugin – Alen Jul 18 '17 at 0:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.