D
D
Deefs2019-11-07 23:54:55
PHP
Deefs, 2019-11-07 23:54:55

Is such a redirect possible?

Good night, experts
faced this problem
We moved to a new domain and there are a lot of reposts with posts in social networks The
old url of the article looked like

https://site.com/blog/blog-title.html
where blog-title is the SLUG field in the database , that is, the url was parsed from the database
. In the new cms
, the URL looks like:
https://site.com/blog/123_blog-title.html
Where 123 is the id of the article.
Is it possible to redirect from old urls to new ones?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2019-11-08
@Deefs

just drop the ID and search by slug.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question