Mobile app version of vmapp.org
Login or Join
Bryan171

: Does Yoast support regular expression redirects to remove the date from post URLs? I have to setup as redirect from "Date and Name" Format to "Post Name" Format. For example: /2010/10/post-url/

@Bryan171

Posted in: #301Redirect #Redirects #Wordpress

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.

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Bryan171

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme