Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable secure pages on a local server?

I've just moved a Drupal to my localserver and I forgot to disable Secure Pages.

Now I cannot access admin pages, because the site switches to HTTPS.

How can I disable it?

like image 270
aneuryzm Avatar asked Dec 27 '10 15:12

aneuryzm


1 Answers

If you are using drush, you can keep the Secure Pages module enabled and just turn off the checkbox in the module's own config like:

drush vset securepages_enable 0

This will stop the redirect.

you can also change the URLs if you want, as follows, but the above is usually enough.

drush vset securepages_basepath http://nominet.dev
drush vset securepages_basepath_ssl http://nominet.dev

I'm running Drupal 7 btw, so YMMV, but seems to be a simple drush based solution following on from the above answer.

like image 111
Al Power Avatar answered Sep 25 '22 20:09

Al Power