I copied over an instance of my Drupal 7 installation to a local Debian server for testing. I then exported the original database from the source server and imported it with phpMyAdmin on the new server.
I edited the
/sites/default/settings.php file to reflect the new database settings.
I could load the front page but got errors on all other pages.
1. I made changes to the drupal
/.htaccess file as follows:
ReWriteBase /dp (the new path)
2. I edited
3. Restarted Apache
sudo service apache2 restart
All working now!!