Posted By

zachharkey on 03/21/09


drupal pathauto

Versions (?)

Who likes this?

1 person have marked this snippet as a favorite


Selectively updating Drupal's pathauto aliases based on patterns

 / Published in: MySQL


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

Here was the query that worked:

  1. UPDATE url_alias SET dst = REPLACE(dst, 'films/', 'film/') WHERE dst LIKE 'films/%';

Report this snippet  

You need to login to post a comment.