Selectively updating Drupal's pathauto aliases based on patterns


/ Published in: MySQL
Save to your folder(s)

We wanted to change all /films/example style paths to /film/example (basically remove the 's').

Here was the query that worked:


Copy this code and paste it in your HTML
  1. UPDATE url_alias set dst = replace(dst, 'films/', 'film/') WHERE dst LIKE 'films/%';

URL: http://drupal.org/node/144904#comment-1135941

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.