diff --git a/securepages.module b/securepages.module
index d029091..8631bba 100644
--- a/securepages.module
+++ b/securepages.module
@@ -294,12 +294,10 @@ function securepages_baseurl($secure = TRUE) {
  *   URL to check.
  */
 function securepages_can_alter_url($url) {
-  global $base_path, $base_url;
-
   $url = @parse_url($url);
 
   // If there is no scheme then it is a relative url and can be altered
-  if (!isset($url['scheme']) && $base_path == '/') {
+  if (!isset($url['scheme'])) {
     return TRUE;
   }
 
@@ -308,9 +306,5 @@ function securepages_can_alter_url($url) {
     return FALSE;
   }
 
-  if (strlen($base_path) > 1 && substr($base_url, -1) != substr($url['path'], 1, strlen($base_path))) {
-    return FALSE;
-  }
-
   return TRUE;
 }
