I made a copy of Drupal6 site with SecurePages module installed and configured. This module is configured to redirect all or certain pages to https - depending on your configurations. For our setup we usually include the login and admin sections to redirect to https.
The problem is on the copied site that is on a new domain as we cannot login and go to the admin section because it redirect back to the source/original site. What we need is either disable the securepages module or update the domains. To do this, you need to access your database (ex: phpmyadmin, etc), go to variable table, and search for securepages configurations.
If you want to disable the module change:
Or if you want to update the domain change:
After making the above changes don’t forget to run the update.php (
If you want to uninstall the module, try removing the securepages directory and run update.php.