I copied files and database of a Drupal 7 site to another domain.
When I put the site in maintenance mode, and I login, I am redirected and logged in to the old site. I cleared the cache, also in the database, but the result is the same. When the site is not in maintenance mode, this doesn't happen.

Additionally, I have to say that I created an SSL connection and checked _Use a symbolic link from private_html to public_html - allows for same data in http and https_. I don't know if this has something to do with that.

Where is the responsible file? What do I need to do?

1 Answer 1


Try setting the $base_url variable to the new site domain. This is in the /sites/default/settings.php file.

  • Thanks! I think this is usefull. I messed up some settings with the http:// and https:// but now I set everyting back and can continue May 19, 2017 at 12:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.