K
K
Kostya2014-03-21 09:37:29
Apache HTTP Server
Kostya, 2014-03-21 09:37:29

How to change wordpress link structure without loss?

Hello. There was a situation when I needed to change the structure of links on my Wordpress site, and at the same time not lose access to articles.
At the moment, the link structure is as follows: site.ru/category/postname.html
It will change to this: site.ru/category/12345/
Wordpress settings:
Old - /%category%/%postname%.html
New - /%category% /%post_id%/
Q: I have over 400 posts. How to change the structure so that the old links remain working?
How to make a proper 301 redirect?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Filatov, 2014-03-21
@i_dozi

From sitemap.xml you take all your links (so as not to lose anything), copy all this into Excel. There, once you have written a 301 redirect for one link, do an auto-post by analogy.
There is also a plugin that adds a field when editing a page or post where you can enter a new address, but the first method is better.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question