Friends, help me figure it out. When you turn on the wordpress cache, the address of the type: mydomain.com/?p=123 turned into mydomain.com/Hello-World But this is not a problem, there are such links as:
mydomain.com/Hello.-World mydomain.com/Hello-&-World when you enter them, the site gives an error. if you delete all extra characters like "." or "&", then everything is OK and the pages are loaded without any problems
for deletion, I used the following query:
UPDATE `wp_posts` SET `post_name` = REPLACE( post_name, '.', '' ); UPDATE `wp_posts` SET `post_name` = REPLACE( post_name, '&', '' ); And here's the question: how to build a query so that all characters except for
БУКВ,ЦИФР и ТИРЕ (in one request at once)?
So as not to build 50 removal requests.
Thank.
replacebyregexp. The easiest way, in my opinion, is to remove the dump of the database, delete the extra characters in it and reload it. Or delete characters with separate requests. - Pyramidhead