Skip to content

Instantly share code, notes, and snippets.

@juampynr
Created September 3, 2014 09:55
Show Gist options
  • Save juampynr/0686e91325dd36e814f5 to your computer and use it in GitHub Desktop.
Save juampynr/0686e91325dd36e814f5 to your computer and use it in GitHub Desktop.
Move site within sites directory
cd sites/example
drush -v sqlq 'UPDATE system SET filename = REPLACE(filename, "example", "example2")'
mv sites/example sites/example2
drush rr -v # This is Registry Rebuild Drush command
# Then, browse your code and search for URLs containing sites/example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment