Using WordPress-Heroku and ran into some issues. Changed my app name from heroku’s autogenerated name to something more descriptive, but /wp-admin gets redirected to the old name. Of course there’s no such app anymore. Also tried to set up a local version but found that going to localhost:8888/wp-admin redirects me to app on heroku.
I guess that something in the installation process creates permalinks to the site address in the database. Is there a way to fix this without resetting the installation?
I change servers (copying live sites to localhost) fairly frequently following the Codex. While not on Heroku, I assume the process would be the same.
In your case, the Search and Replace for WordPress Databases Script mentioned should do the trick (after backing up the database, of course).
I assume you’ve updated your
wp-config.php
to point to the new database.