The pathauto module and bulk node url updates

Drupal's native URL-rewriting functionality is pretty groovy; with a stock install of Drupal you can simply write the custom, semantic/human-readable URL for any node when creating/editing it!

However, things can get a little messy if you plan on writing URLs each time you add new nodes to your site; its makes sense to apply rules to how the URLs are written; such as making all blog entries follow a pattern like 'site.com/blog/[date]/[nodetitle]' - in case you're not familiar with it, there's a module which can do this really simply; its called Pathauto.

I use the Pathauto module on every site that we build in Drupal at Design Guru, but and in keeping up with the latest releases have noticed a change in workflow with the module I'd like to share with you - up until recently you could change the URL role for, say, a node type, and then simply click a 'bulk update' checkmark at '/admin/settings/pathauto' and that would over-write any existing URL aliases you've created on your site.  Great feature eh?  Well, supposedly there were some hiccups with large sites so the module developers have removed this check...

If you're using the newest verison of Pathauto and want to rewrite a rule for a node type etc, you'll either have to edit your database tables to delete the appropriate URLs, then change the rule and update node paths for non-existing aliases (the only option now available in the module) or delete all aliases (easily done at 'admin/build/path') on your site and then chage the appropriate rules, and create new aliases for all nodes using the Pathauto module settings.

Note that there is now a

greggles's picture

Note that there is now a bulk delete page to make this deleting process easier:

You can see it at http://drupal.org/no...

I'm still not sure that this is the best workflow, but there were a lot of issues where people would report white screens and ruined sites do to the old system. I'm realizing that there are cases where the old system would be great (especially when combined with the new "create a new alias, redirect old alias" option) but the question remains - how to make that process scalable...

I should also say that if you haven't already you should join and contribute in the group on groups.drupal.org - http://groups.drupal...

I agree with you Drupal is

seo's picture

I agree with you Drupal is great. thanks for the Pathauto instructions, very helpful.

Very helpful Pathauto

Audi R8's picture

Very helpful Pathauto instructions indeed,