Return to Snippet

Revision: 12625
at March 21, 2009 21:34 by zachharkey


Initial Code
UPDATE url_alias set dst = replace(dst, 'films/', 'film/') WHERE dst LIKE 'films/%';

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

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

Here was the query that worked:

Initial Title
Selectively updating Drupal's pathauto aliases based on patterns

Initial Tags
drupal

Initial Language
MySQL