Published in: MySQL
|
|
|
In case you don't feel like loading 3 pages to edit a single url alias.
Expand |
Embed | Plain Text
# Change all aliases with paths like foo/* to bar/* UPDATE url_alias SET dst = REPLACE(dst, 'foo/', 'bar/') WHERE dst LIKE 'foo/%'; # Delete all aliases with paths like foo/* DELETE FROM `url_alias` WHERE dst LIKE 'category/%';
You need to login to post a comment.