Q: I am using the drupal Secure Pages module to SSL/SHTTP some of my website's pages. It seems to work well, but for some reason my website's home page is now always secured, visitors are always redirected to its https://blahblah.com version, even though I haven't specified that they should be. How can I fix this?
A: The drupal Secure Pages module is great if you want to ensure that a specified set of your websites pages are always secured, and that visitors are always redirected their https:// version. It has a strange bug however which can cause visitors to the site's homepage to be always redirected to the secured version of the home page.
If this is happening to you, the good news is that it is easy to fix. It seems that it can arise if there is a 'newline' at the end of the list of the URLs to secure on the module's settings pages.
So go to the settings page (admin/build/securepages) and make sure that there aren't any newlines after the last URL in the 'Pages:' text area. If there are newlines, delete them and save the settings - hopefully the problem should go away, it did for us! ;-)