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:
securepages_enable s:1:"1";
to
securepages_enable s:1:"0";
Or if you want to update the domain change:
securepages_basepath s:30:"http://www.domain.com";
securepages_basepath_ssl s:31:"https://www.domain.com";
to
securepages_basepath s:30:"http://www.newdomain.com";
securepages_basepath_ssl s:31:"https://www.newdomain.com";
After making the above changes don’t forget to run the update.php (http://www.newdomain.com/update.php)
If you want to uninstall the module, try removing the securepages directory and run update.php.

0 responses so far ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment