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

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

Initial Language