Posted By

zachharkey on 03/21/09


Tagged

drupal pathauto


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

panatlantica


Selectively updating Drupal's pathauto aliases based on patterns


 / Published in: MySQL
 

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

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.