Hello friends,
I have an old site in WP using EE + Nginx, where permanent links include the year and month of posting the url as shown below:
example.com/2012/01/category-name/title-post
The problem is that I want to update those posts and repost the current date. By doing so the URL will change to:
example.com/2016/08/category-name/title-post
To avoid all this trouble, I will change the permalinks in WordPress settings for:
Now the question:
It has some way to redirect all the old traffic of:
example.com/2012/01/category-name/title-post
For:
Not to lose the links and gives 404 error?
From what I’ve been reading, you can do this redirection using regular expression, most do not have a clue how to do this.
Some guys idea?
TRADUZIDO DE:
Olá amigos, Tenho um site antigo em WP usando EE + Nginx, em que os links permanentes incluem o ano e mês da postagem na url como no exemplo abaixo: example.com/2012/01/category-name/title-post
O problema é que quero atualizar esses posts e repostar na data atual. Fazendo isso a url mudará para: example.com/2016/08/category-name/title-post
Para evitar todo esse problema, vou mudar os links permanentes nas configurações do WordPress para: example.com/title-post
Agora a pergunta: Tem alguma forma de redirecionar todo o trafego antigo de: example.com/2012/01/category-name/title-post Para: example.com/title-post Para não perder os links e dá erro 404?
Pelo que andei lendo, talvez consiga fazer esse redirecionamento usando expressão regular, mais não tenha a menor noção de como fazer isso. Alguma ideia rapazes?