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/%';


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.