A
A
Alexey2015-10-16 00:04:08
PHP
Alexey, 2015-10-16 00:04:08

How to make a redirect when changing the name of the news?

I output news in this format site/news/nazvanie_novosti.html, this part "nazvanie_novosti" is stored in the database in the translit field as a translit header.
How to make search engines find the new version of the page through the old one when changing the title?
I understand how to do it if I had a unique id in the address - it's easy, but what should I bind to when it doesn't exist?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
IceJOKER, 2015-10-16
@dzheka3d

1. store history in a separate table.
2. display id in the title, then you can pull id out of any title
3. do not change the title!

A
Anton, 2015-10-16
@SPAHI4

site/news/ID_nazvanie_novosti.html

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question