Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By droopy on
Having upgraded to 4.7 in a subdirectory and then moved the site up to the root, I now have the problem that url paths all have the subdirectory in them.
eg. href="/subdirectory/node/34"
How can I get rid of the subdirectory? Is it possible to remove the string ('/subdirectory') throughout the database automatically? Does anyone have a script to do this? It would be tedious in the extreme to have to go through manually deleting the subdirectory from every path.