How to bulk update existing URL alias?
I have Path auto module add path alias to URLs. I have changed the URL alias pattern. Now I want to update the pattern of old URLs also.
How can I achieve this?
How to bulk update existing URL alias?
I have Path auto module add path alias to URLs. I have changed the URL alias pattern. Now I want to update the pattern of old URLs also.
How can I achieve this?
it works only to URL which does not have path alias – Vamsi
Then first go to /admin/config/search/path/delete_bulk
and delete the aliases
in question.
Then update /admin/config/search/path/update_bulk
go to configuration > Search and metadata > Url aliases > bulk generate.
If you already have already aliases and want to change them to the new ones you could delete all the content aliases first, is another option in url aliases.
With Pathauto you can delete all the content aliases and then bulk generate new ones - but this does not address the problem if you have many pages with custom aliases mixed with automatic aliases as these will also be deleted. Bulk generate will only generate aliases for nodes that are checked for automatic alias AND has no alias - deleted unchecked auto alias nodes will revert back to default pattern of node/#
To get around this issue you can use Administrative views (or your own view with bulk operations)
The idea here is just to change something so that the nodes are saved again, the aliases are updated with the current pattern upon save. and using VBO allows you to do as many as you want, and you could add extra exposed filters to your View to better select your list of nodes to update.