Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Solution:
in .htaccess write RedirectMatch 301 ^/(\d+)$ sitename.com/?p= $1
regexp needs to be changed depending on your links. This particular one works for /%post_id%. For other formats, respectively - another.
There is a plugin that you set old and new permalinks and it will redirect from old links to new ones, like this one: wordpress.org/plugins/advanced-permalinks/
Well, write a simple script yourself that will generate redirects in htaccess
, nothing at all
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question