diff --git a/securepages.module b/securepages.module
index 428ee71..9b102e8 100644
--- a/securepages.module
+++ b/securepages.module
@@ -9,7 +9,7 @@
  * Implementation of hook_boot().
  */
 function securepages_boot() {
-  $path = isset($_GET['q']) ? $_GET['q'] : '';
+  $path = isset($_GET['q']) ? $_GET['q'] : variable_get('site_frontpage', 'node');
   if ($path == 'admin/build/securepages/test') {
     if (securepages_is_secure()) {
       header('HTTP/1.1 200 OK');
@@ -142,7 +142,7 @@ function securepages_link_alter(&$links, $node, $comment = NULL) {
  */
 function securepages_redirect() {
   global $base_url;
-  $path = isset($_GET['q']) ? $_GET['q'] : '';
+  $path = isset($_GET['q']) ? $_GET['q'] : variable_get('site_frontpage', 'node');
   $page_match = securepages_match($path);
 
   if ($_POST) {
