diff --git a/securepages.module b/securepages.module
index 7493927..72c0aed 100755
--- a/securepages.module
+++ b/securepages.module
@@ -154,6 +154,8 @@ function securepages_redirect() {

   $path = isset($_GET['q']) ? $_GET['q'] : '';
   $page_match = securepages_match($path);
+  // Add support for Url alias
+  $page_match = !$page_match ? securepages_match(drupal_get_path_alias($path)) : $page_match;
   $role_match = securepages_roles($user);

   if ($_POST) {
@@ -208,7 +210,10 @@ function securepages_goto($secure) {
     //drupal_add_http_header('Location', url($url['path'], $url));
        $redirect_url = $url['base_url'];
        if ($url['path']) {
-               $redirect_url .="/".$url['path'];
+         // Add URL alias support
+    $alias = drupal_get_path_alias($url['path']);
+    $path = $alias ? $alias : $url['path'];
+    $redirect_url .= "/" . $path;
                if ($url['query']) {
                        $redirect_url .='?' . drupal_http_build_query($url['query']);
                }

