I have a real estate website, coded in Symfony 2.
Every morning, we automatically import properties from a real estate software, and we update the data base.
The URL is rewritten with the title of the property and the ID, like :
.../%title%-%ID%
Sometimes, the real estate agent change the title of the property, so the URL changes as well.
It's creating a duplicate content in Google, because 2 URL now exists for the same page.
I want to fix it, to automatically add a redirect 301 from the old URL to the new one.
How can I do that in Symfony 2?
Thanks for your help !
Mathieu